mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-03 03:17:16 +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