Safely escapes Strings to be used as delimiters via RegExp.
- Source:
Methods
-
(static) escapeDelimiter(delimiter) → {String}
-
Escape special characters that may interfere with RegExp building.
Parameters:
Name Type Description delimiter
String The value to escape. - Source:
Returns:
A safe value for RegExp building.- Type
- String