Blame view
node_modules/underscore.string/helper/escapeRegExp.js
164 Bytes
f7563de62
|
1 2 3 4 5 |
var makeString = require('./makeString'); module.exports = function escapeRegExp(str) { return makeString(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1'); }; |