Gazebo_simulation-Frontend/node_modules/escape-string-regexp
Riddhi Dave f4870cd530 simulator page updates 2020-12-22 09:59:14 -05:00
..
index.js React files 2020-12-21 10:29:31 -05:00
license React files 2020-12-21 10:29:31 -05:00
package.json simulator page updates 2020-12-22 09:59:14 -05:00
readme.md React files 2020-12-21 10:29:31 -05:00

readme.md

escape-string-regexp Build Status

Escape RegExp special characters

Install

$ npm install --save escape-string-regexp

Usage

const escapeStringRegexp = require('escape-string-regexp');

const escapedString = escapeStringRegexp('how much $ for a unicorn?');
//=> 'how much \$ for a unicorn\?'

new RegExp(escapedString);

License

MIT © Sindre Sorhus