Commit 2f78f749 authored by Anton Tereshchenkov's avatar Anton Tereshchenkov

Wrap match_re values

parent bfeb884d
...@@ -159,7 +159,7 @@ function massage(root) { ...@@ -159,7 +159,7 @@ function massage(root) {
for (var key in root.match_re) { for (var key in root.match_re) {
var o = {}; var o = {};
o.isRegex = true; o.isRegex = true;
o.value = new RegExp(root.match_re[key]); o.value = new RegExp("^(?:" + root.match_re[key] + ")$");
o.name = key; o.name = key;
matchers.push(o); matchers.push(o);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment