templating(): minor update to regex escape chars, #2918
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user