MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / escapeRegex

Function escapeRegex

static/js/codemirror/keymap/vim.js:1489–1491  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1487 }
1488 }
1489 function escapeRegex(s) {
1490 return s.replace(/([.?*+$\[\]\/\\(){}|\-])/g, "\\$1");
1491 }
1492
1493 function exitVisualMode(cm, vim) {
1494 vim.visualMode = false;

Callers 1

VimFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected