UNPKG

@maddimathon/utility-typescript

Version:

TypeScript utilities (types, functions, classes) to use in various projects.

29 lines 488 B
/** * @since 0.1.0 * * @packageDocumentation */ /*! * @maddimathon/utility-typescript@2.0.0-beta.1 * @license MIT */ /** * Escapes a string for use in a regular expression. * * @category Escapers * * @source * * @example * ```ts * new RegExp( `^${ escRegExp( filePath ) }\\/.+`, 'g' ); * ``` * * @param str To convert. * * @return Escaped string. * * @since 0.1.0 */ export declare function escRegExp(str: string): string; //# sourceMappingURL=escRegExp.d.ts.map