UNPKG

@stuntman/shared

Version:

Stuntman - HTTP proxy / mock shared types and utils

2 lines (1 loc) 122 B
export const escapeStringRegexp = (input: string) => input.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d');