Commit 5a906e0f by Denis Doria

Fix small corner case

parent a51d900d
...@@ -17,6 +17,8 @@ function (_) { ...@@ -17,6 +17,8 @@ function (_) {
if (tag.value && (operator === '=~' || operator === '!~') && /^\/.*\/$/.test(tag.value)) { if (tag.value && (operator === '=~' || operator === '!~') && /^\/.*\/$/.test(tag.value)) {
return str + '"' + tag.key + '"' + ' ' + operator + ' ' + tag.value; return str + '"' + tag.key + '"' + ' ' + operator + ' ' + tag.value;
} else if (tag.value && /^\/.*\/$/.test(tag.value)) {
return str + '"' + tag.key + '"' + ' =~ ' + tag.value;
} }
return str + '"' + tag.key + '" ' + operator + " '" + tag.value + "'"; return str + '"' + tag.key + '" ' + operator + " '" + tag.value + "'";
......
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