@sentry/utils
Version:
Utilities for all Sentry JavaScript SDKs
9 lines • 395 B
TypeScript
/**
* Given a string, escape characters which have meaning in the regex grammar, such that the result is safe to feed to
* `new RegExp()`.
*
* @param regexString The string to escape
* @returns An version of the string with all special regex characters escaped
*/
export declare function escapeStringForRegex(regexString: string): string;
//# sourceMappingURL=escapeStringForRegex.d.ts.map