MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / escapeRegex

Function escapeRegex

01.GettingStarted/js/vue.js:766–768  ·  view source on GitHub ↗

* Escape a string so it can be used in a RegExp * constructor. * * @param {String} str

(str)

Source from the content-addressed store, hash-verified

764 */
765
766 function escapeRegex(str) {
767 return str.replace(regexEscapeRE, '\\$&');
768 }
769
770 function compileRegex() {
771 var open = escapeRegex(config.delimiters[0]);

Callers 1

compileRegexFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected