mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-07 11:03:01 +00:00
Appeasing the gods of JSHint
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user