MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / regexEscape

Function regexEscape

tests/test_code/js/moment/moment.js:822–824  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

820 }
821
822 function regexEscape(s) {
823 return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
824 }
825
826 var tokens = {};
827

Callers 4

unescapeFormatFunction · 0.85
computeMonthsParseFunction · 0.85
computeWeekdaysParseFunction · 0.85
computeErasParseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected