jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
19 lines (14 loc) • 373 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
/**
* Escape regexp special characters in `str`.
*
* @param {String} str
* @return {String}
* @api public
*/
var escapeRegexp = function(str){
return String(str).replace(/([.*+?=^!:${}()|[\]\/\\])/g, '\\$1');
};
exports.__moduleExports = escapeRegexp;
exports.default = escapeRegexp;