mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 01:24:09 +01:00
lib: fix broken string escapes in doc comments (#486608)
This commit is contained in:
commit
09511292b0
2 changed files with 2 additions and 2 deletions
|
|
@ -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(/.*)?$"
|
||||
])
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ let
|
|||
## `sourceByRegex` usage example
|
||||
|
||||
```nix
|
||||
src = sourceByRegex ./my-subproject [".*\.py$" "^database.sql$"]
|
||||
src = sourceByRegex ./my-subproject [".*\\.py$" "^database\\.sql$"]
|
||||
```
|
||||
|
||||
:::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue