Merge pull request #243251 from schnusch/cgit-regex

nixos/cgit: fix \v and \f in regexEscape

authored by

Lassulus and committed by
GitHub
a4ffd00f d6a0c807

+3 -1
+3 -1
nixos/modules/services/networking/cgit.nix
··· 14 14 # taken from https://github.com/python/cpython/blob/05cb728d68a278d11466f9a6c8258d914135c96c/Lib/re.py#L251-L266 15 15 special = [ 16 16 "(" ")" "[" "]" "{" "}" "?" "*" "+" "-" "|" "^" "$" "\\" "." "&" "~" 17 - "#" " " "\t" "\n" "\r" "\v" "\f" 17 + "#" " " "\t" "\n" "\r" 18 + " " # \v / 0x0B 19 + " " # \f / 0x0C 18 20 ]; 19 21 in 20 22 replaceStrings special (map (c: "\\${c}") special);