9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement
ts
function escapeRegexSymbols(source: string): string;

Defined in: utils/index.d.ts:126

Escapes special regex symbols (., *, ^, $ and so on) in string in order to create a valid regex from it.

Parameters

ParameterTypeDescription
sourcestringThe original value.

Returns

string