about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorschnusch <schnusch@users.noreply.github.com>2023-07-13 12:57:23 +0200
committerschnusch <schnusch@users.noreply.github.com>2023-07-14 21:14:01 +0200
commit8980fdd9b57b2b43592058cbda2e866148e14ab5 (patch)
tree935377ed7c7300fc65b4aecfaac279d77cfdf642 /nixos
parent45f06d9712bdd6ee8084065bbd0776d73982fd6e (diff)
nixos/cgit: fix \v and \f in regexEscape
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/cgit.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/cgit.nix b/nixos/modules/services/networking/cgit.nix
index 672b0b030eeee..7d1f12fa91469 100644
--- a/nixos/modules/services/networking/cgit.nix
+++ b/nixos/modules/services/networking/cgit.nix
@@ -14,7 +14,9 @@ let
       # taken from https://github.com/python/cpython/blob/05cb728d68a278d11466f9a6c8258d914135c96c/Lib/re.py#L251-L266
       special = [
         "(" ")" "[" "]" "{" "}" "?" "*" "+" "-" "|" "^" "$" "\\" "." "&" "~"
-        "#" " " "\t" "\n" "\r" "\v" "\f"
+        "#" " " "\t" "\n" "\r"
+        "" # \v / 0x0B
+        "" # \f / 0x0C
       ];
     in
       replaceStrings special (map (c: "\\${c}") special);