fixed location and a names bug
This commit is contained in:
parent
da2d8cfcd5
commit
47fb023fdd
4 changed files with 11 additions and 7 deletions
|
@ -199,4 +199,8 @@ String.prototype.escapeSpecialChars = function() {
|
|||
.replace(/[\n]/g, '\\n')
|
||||
.replace(/[\r]/g, '\\r')
|
||||
.replace(/[\t]/g, '\\t');
|
||||
}
|
||||
|
||||
String.prototype.escapeRegExp = function() {
|
||||
return this.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
||||
}
|
Reference in a new issue