Sid Gifari From Gifari Industries - BD Cyber Security Team
Home
/
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
escape-string-regexp
/
✏️
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, '\\$&'); };
💾 Save
❌ Cancel