X7ROOT File Manager
Current Path:
/lib/node_modules/npm/node_modules/escape-string-regexp
lib
/
node_modules
/
npm
/
node_modules
/
escape-string-regexp
/
ðŸ“
..
📄
index.js
(226 B)
📄
license
(1.09 KB)
📄
package.json
(1.98 KB)
📄
readme.md
(552 B)
Editing: index.js
'use strict'; var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; module.exports = function (str) { if (typeof str !== 'string') { throw new TypeError('Expected a string'); } return str.replace(matchOperatorsRe, '\\$&'); };
Upload File
Create Folder