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

This commit is contained in:
Torkel Ödegaard
2016-03-02 08:44:20 +01:00
parent 4872f6d2dc
commit 1ed4f64e60
2 changed files with 2 additions and 2 deletions
@@ -35,7 +35,7 @@ function (angular, _) {
};
function regexEscape(value) {
return value.replace(/[-[\]{}()*+!<=:?.\/\\^$|#\s,]/g, '\\$&');
return value.replace(/[\\^$*+?.()|[\]{}]/g, '\\$&');
}
function luceneEscape(value) {
+1 -1
View File
@@ -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;
}