MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / escapeRegExp

Function escapeRegExp

ui/media/js/dnd.js:691–693  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

689 tiling: "Seamless Tiling",
690}
691function escapeRegExp(str) {
692 return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")
693}
694function getTaskTextLabels(key) {
695 const val = TASK_TEXT_MAPPING[key]
696 return Array.isArray(val) ? val : [val]

Callers 1

parseTaskFromTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected