Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/simstudioai/sim
/ escapeRegExp
Function
escapeRegExp
apps/sim/lib/logs/log-views.ts:193–195 ·
view source on GitHub ↗
(input: string)
Source
from the content-addressed store, hash-verified
191
}
192
193
function
escapeRegExp(input: string): string {
194
return
input.replace(/[.*+?^${}()|[\]\\]/g,
'\\$&'
)
195
}
196
197
function
buildRegex(pattern: string): RegExp {
198
try {
Callers
1
buildRegex
Function · 0.70
Calls
1
replace
Method · 0.65
Tested by
no test coverage detected