Skip to content

Commit

Permalink
More clearly regexp in escapeRegExp. And syntax coloring in some edit…
Browse files Browse the repository at this point in the history
…ors not confusing.
  • Loading branch information
or committed Oct 24, 2013
1 parent d759c44 commit 7a351da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@

function escapeRegExp(str) {
if(!isString(str)) str = string(str);
return str.replace(/([\\/\'*+?|()\[\]{}.^$])/g,'\\$1');
return str.replace(/([\\\/\'*+?|()\[\]{}.^$])/g,'\\$1');
}


Expand Down

0 comments on commit 7a351da

Please sign in to comment.