Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ escapeRegex
Function
escapeRegex
packages/@internationalized/number/src/NumberParser.ts:422–424 ·
view source on GitHub ↗
(string: string)
Source
from the content-addressed store, hash-verified
420
}
421
422
function
escapeRegex(string: string) {
423
return
string.replace(/[.*+?^${}()|[\]\\]/g,
'\\$&'
);
424
}
Callers
1
getSymbols
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected