escape-regex-string

Escapes a string literal for use as an argument in the standard RegExp constructor.

Browse on unpkg