mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
treewide: Fix incorrect string escapes
This commit is contained in:
parent
ccd60fa3b5
commit
603733851b
28 changed files with 44 additions and 44 deletions
|
@ -426,7 +426,7 @@ rec {
|
|||
# If the part is a named placeholder of the form "<...>" don't escape it.
|
||||
# It may cause misleading escaping if somebody uses literally "<...>" in their option names.
|
||||
# This is the trade-off to allow for placeholders in option names.
|
||||
isNamedPlaceholder = builtins.match "\<(.*)\>";
|
||||
isNamedPlaceholder = builtins.match "<(.*)>";
|
||||
escapeOptionPart = part:
|
||||
if part == "*" || isNamedPlaceholder part != null
|
||||
then part
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue