First commit

This commit is contained in:
2025-01-15 19:28:55 +01:00
committed by andreas
commit 5d4c4a054e
18475 changed files with 3309357 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
'use strict';
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
module.exports = function (str) {
if (typeof str !== 'string') {
throw new TypeError('Expected a string');
}
return str.replace(matchOperatorsRe, '\\$&');
};