MCPcopy
hub / github.com/documentcloud/visualsearch / langRe

Function langRe

docs/assets/highlight.js:14–19  ·  view source on GitHub ↗
(language, value, global)

Source from the content-addressed store, hash-verified

12 }
13
14 function langRe(language, value, global) {
15 return RegExp(
16 value,
17 'm' + (language.case_insensitive ? 'i' : '') + (global ? 'g' : '')
18 );
19 }
20
21 function findCode(pre) {
22 for (var i = 0; i < pre.childNodes.length; i++) {

Callers 2

compileTerminatorsFunction · 0.85
compileModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected