Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/processing/p5.js
/ escapeRegExp
Function
escapeRegExp
src/io/csv.js:209–211 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
207
}
208
209
function
escapeRegExp(str) {
210
return
str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,
'\\$&'
);
211
}
Callers
2
parse
Function · 0.85
stringify
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected