MCPcopy Create free account
hub / github.com/Snapchat/Valdi / isRegexSpecialChar

Function isRegexSpecialChar

valdi/vscode_debugger/src/common/stringUtils.ts:40–40  ·  view source on GitHub ↗
(chr: string)

Source from the content-addressed store, hash-verified

38const regexChars = '/\\.?*()^${}|[]+';
39
40export const isRegexSpecialChar = (chr: string) => regexChars.includes(chr);
41
42export function escapeRegexSpecialChars(str: string, except?: string): string {
43 const useRegexChars = regexChars

Callers 1

urlToRegexCharFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected