animate/webGl/my-threejs-test/node_modules/escape-string-regexp
Sam 907ebae4c0 larry babby and threejs for glsl 2024-06-24 21:24:00 +12:00
..
index.js larry babby and threejs for glsl 2024-06-24 21:24:00 +12:00
license larry babby and threejs for glsl 2024-06-24 21:24:00 +12:00
package.json larry babby and threejs for glsl 2024-06-24 21:24:00 +12:00
readme.md larry babby and threejs for glsl 2024-06-24 21:24:00 +12: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