-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Takes error in inputmask.js in Inputmask.escapeRegex function;

The function is;
Inputmask.escapeRegex = function(str) {
var specials = [ "/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\", "$", "^" ];
return str.replace(new RegExp("(\" + specials.join("|\") + ")", "gim"), "\$1");
It would be like this;
Inputmask.escapeRegex = function(str) {
var specials = [ "/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\", "$", "^" ];
return str ? str.replace(new RegExp("(\" + specials.join("|\") + ")", "gim"), "\$1"): str;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels