aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;