MCPcopy
hub / github.com/highlightjs/highlight.js / source

Function source

src/lib/regex.js:13–18  ·  view source on GitHub ↗
(re)

Source from the content-addressed store, hash-verified

11 * @returns {string}
12 */
13export function source(re) {
14 if (!re) return null;
15 if (typeof re === "string") return re;
16
17 return re.source;
18}
19
20/**
21 * @param {RegExp | string } re

Callers 3

concatFunction · 0.85
eitherFunction · 0.85
_rewriteBackreferencesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…