MCPcopy Create free account
hub / github.com/TruthHun/BookStack / reEsc

Function reEsc

static/editor.md/lib/codemirror/mode/smartymixed/smartymixed.js:41–41  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

39 }
40
41 function reEsc(str) { return str.replace(/[^\s\w]/g, "\\$&"); }
42
43 var reLeft = reEsc(settings.leftDelimiter), reRight = reEsc(settings.rightDelimiter);
44 var regs = {

Callers 1

smartymixed.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected