Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepnote/vscode-deepnote
/ escapeRegExp
Function
escapeRegExp
src/extension.node.ts:177–179 ·
view source on GitHub ↗
(text: string)
Source
from the content-addressed store, hash-verified
175
}
176
177
function
escapeRegExp(text: string) {
178
return
text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
'\\$&'
);
179
}
180
181
function
tryGetUsername() {
182
try {
Callers
3
tryGetUsername
Function · 0.85
tryGetHomePath
Function · 0.85
modifyTracebackFrameIPython7
Method · 0.85
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected