1.0.5 • Published 2 years ago
@os-team/escape-string-regexp v1.0.5
@os-team/escape-string-regexp

Escapes special characters in a string for regular expressions.
Usage
Install the package
Install the package using the following command:
yarn add @os-team/escape-string-regexp
Simple usage
import escapeStringRegexp from 'escape-string-regexp';
const escapedString = escapeStringRegexp('a\\b'); // a\\b
Based on escape-string-regexp.