mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
12 lines
198 B
JavaScript
Executable File
12 lines
198 B
JavaScript
Executable File
'use strict';
|
|
|
|
const internals = {};
|
|
|
|
|
|
module.exports = function (string) {
|
|
|
|
// Escape ^$.*+-?=!:|\/()[]{},
|
|
|
|
return string.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g, '\\$&');
|
|
};
|