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

Function compileRegex

06.Router/basic/js/vue.js:770–779  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

768 }
769
770 function compileRegex() {
771 var open = escapeRegex(config.delimiters[0]);
772 var close = escapeRegex(config.delimiters[1]);
773 var unsafeOpen = escapeRegex(config.unsafeDelimiters[0]);
774 var unsafeClose = escapeRegex(config.unsafeDelimiters[1]);
775 tagRE = new RegExp(unsafeOpen + '((?:.|\\n)+?)' + unsafeClose + '|' + open + '((?:.|\\n)+?)' + close, 'g');
776 htmlRE = new RegExp('^' + unsafeOpen + '((?:.|\\n)+?)' + unsafeClose + '$');
777 // reset cache
778 cache = new Cache(1000);
779 }
780
781 /**
782 * Parse a template text string into an array of tokens.

Callers 2

parseTextFunction · 0.70
vue.jsFile · 0.70

Calls 1

escapeRegexFunction · 0.70

Tested by

no test coverage detected