commit | 8778f5dd6d235782c73d8bd966eeace3258f5399 | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Fri Jun 30 21:25:55 2017 +0200 |
committer | Akron <nils@diewald-online.de> | Fri Jun 30 21:25:55 2017 +0200 |
tree | 8d0d56491ee98be42f08e5fa3c348cc4c522a843 | |
parent | aa7fce5fda92624754e65579a30f87eb30aa1b27 [diff] [blame] |
Fix escaping of regular expressions in VC builder Change-Id: I172c83fcb7ebb0943b23106891c57aeadca0a1f8
diff --git a/dev/js/src/vc/doc.js b/dev/js/src/vc/doc.js index b56ba53..6a44fa8 100644 --- a/dev/js/src/vc/doc.js +++ b/dev/js/src/vc/doc.js
@@ -567,7 +567,7 @@ return string + this.value(); break; case "regex": - return string + '/' + this.value() + '/'; + return string + '/' + this.value().escapeRegex() + '/'; break; case "string": return string + '"' + this.value().quote() + '"';