fixed location and a names bug

This commit is contained in:
jeena 2013-10-03 21:21:32 +02:00
parent da2d8cfcd5
commit 47fb023fdd
4 changed files with 11 additions and 7 deletions

View file

@ -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, "\\$&");
}