Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Acode-Foundation/Acode
/ escapeRegExp
Function
escapeRegExp
utils/lang.js:394–396 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
392
}
393
394
function
escapeRegExp(text) {
395
return
text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
"\\$&"
);
396
}
397
398
function
createTypes() {
399
const
enPath = path.resolve(dir,
"en-us.json"
);
Callers
1
update
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected