lib: fix broken string escapes in doc comments (#486608)

This commit is contained in:
piegames 2026-02-10 13:49:42 +00:00 committed by GitHub
commit 09511292b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -862,7 +862,7 @@ in
# but removing a subdirectory using file set functions
difference
(fromSource (lib.sources.sourceByRegex ./. [
"^README\.md$"
"^README\\.md$"
# This regex includes everything in ./doc
"^doc(/.*)?$"
])

View file

@ -200,7 +200,7 @@ let
## `sourceByRegex` usage example
```nix
src = sourceByRegex ./my-subproject [".*\.py$" "^database.sql$"]
src = sourceByRegex ./my-subproject [".*\\.py$" "^database\\.sql$"]
```
:::