v1.0.6
Escapes a string literal for use as an argument in the standard RegExp constructor.
Source code on GitHub