MCPcopy
hub / github.com/PrismJS/prism / re

Function re

components/prism-csharp.js:24–26  ·  view source on GitHub ↗

* @param {string} pattern * @param {string[]} replacements * @param {string} [flags] * @returns {RegExp}

(pattern, replacements, flags)

Source from the content-addressed store, hash-verified

22 * @returns {RegExp}
23 */
24 function re(pattern, replacements, flags) {
25 return RegExp(replace(pattern, replacements), flags || '');
26 }
27
28 /**
29 * Creates a nested pattern where all occurrences of the string `<<self>>` are replaced with the pattern itself.

Callers 2

prism-csharp.jsFile · 0.70

Calls 1

replaceFunction · 0.70

Tested by

no test coverage detected