dotfiles/.vscode/extensions/saviorisdead.RustyCode-0.18.0/node_modules/underscore.string/helper/escapeRegExp.js

6 lines
164 B
JavaScript
Raw Normal View History

2016-09-11 09:29:13 +01:00
var makeString = require('./makeString');
module.exports = function escapeRegExp(str) {
return makeString(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
};