UNPKG

395 BTypeScriptView Raw
1/**
2 * Given a string, escape characters which have meaning in the regex grammar, such that the result is safe to feed to
3 * `new RegExp()`.
4 *
5 * @param regexString The string to escape
6 * @returns An version of the string with all special regex characters escaped
7 */
8export declare function escapeStringForRegex(regexString: string): string;
9//# sourceMappingURL=escapeStringForRegex.d.ts.map
\No newline at end of file