Commit 1ed4f64e by Torkel Ödegaard

templating(): minor update to regex escape chars, #2918

parent 4872f6d2
......@@ -35,7 +35,7 @@ function (angular, _) {
};
function regexEscape(value) {
return value.replace(/[-[\]{}()*+!<=:?.\/\\^$|#\s,]/g, '\\$&');
return value.replace(/[\\^$*+?.()|[\]{}]/g, '\\$&');
}
function luceneEscape(value) {
......
......@@ -2,6 +2,6 @@ input[type=text].ng-dirty.ng-invalid {
box-shadow: inset 0 0px 7px $red;
}
form input.ng-invalid {
input.ng-dirty.ng-invalid {
color: $errorText;
}
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