aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-01-28 16:43:32 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-01-28 16:46:01 +0300
commit842bb311ec112e299a1a2fa472c19a8cc4a68498 (patch)
tree4dc04708ab9e647c594ec46ffdb3471057e7811e /mod
parentb3b31466afd6852d53a542daa17322deb8d908ac (diff)
Fix 'regular expression: parentheses () not balanced' database query error for builds page
Diffstat (limited to 'mod')
-rw-r--r--mod/mod-builds.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/mod-builds.cxx b/mod/mod-builds.cxx
index e749461..241ae0b 100644
--- a/mod/mod-builds.cxx
+++ b/mod/mod-builds.cxx
@@ -110,7 +110,11 @@ transform (const string& pattern)
case '|':
case '+':
case '{':
- case '(': r += '\\'; break;
+ case '}':
+ case '(':
+ case ')':
+ case '[':
+ case ']': r += '\\'; break;
}
r += c;