UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

19 lines (14 loc) 373 B
'use strict'; 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;