UNPKG

fvtt-types

Version:
13 lines (11 loc) 359 B
export {}; declare global { interface RegExpConstructor { /** * Escape a given input string, prefacing special characters with backslashes for use in a regular expression * @param string - The un-escaped input string * @returns The escaped string, suitable for use in regular expression */ escape(string: string): string; } }