Appeasing the gods of JSHint

This commit is contained in:
Jeremy Ruston
2012-11-06 17:21:56 +00:00
parent 54252a5400
commit 9f6909ddc4
28 changed files with 69 additions and 66 deletions

View File

@@ -258,7 +258,7 @@ exports.stringify = function(s) {
Escape the RegExp special characters with a preceding backslash
*/
exports.escapeRegExp = function(s) {
return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')
return s.replace(/[\-\/\\\^\$\*\+\?\.\(\)\|\[\]\{\}]/g, '\\$&');
};
exports.nextTick = function(fn) {