UNPKG

expo-router

Version:

Expo Router is a file-based router for React Native and web applications.

7 lines (6 loc) • 296 B
/** * Escapes the characters that have a special meaning in a regular expression, so `value` matches * literally. `-` becomes `\x2d` because `\-` is not a valid escape outside a character class in * Unicode-mode patterns. */ export declare function escapeStringRegexp(value: string): string;