treewide: Fix incorrect string escapes

This commit is contained in:
piegames 2024-12-23 21:58:07 +01:00
parent ccd60fa3b5
commit 603733851b
28 changed files with 44 additions and 44 deletions

View file

@ -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