MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / E

Function E

vulnerablecode/static/js/highlight-10.6.0.min.js:251–262  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

249"after:highlightBlock":({result:e})=>{
250g.tabReplace&&(e.value=e.value.replace(b,(e=>e.replace(/\t/g,g.tabReplace))))}}
251;function E(e){let t=null;const n=(e=>{let t=e.className+" "
252;t+=e.parentNode?e.parentNode.className:"";const n=g.languageDetectRe.exec(t)
253;if(n){const t=_(n[1])
254;return t||(U(l.replace("{}",n[1])),U("Falling back to no-highlight mode for this block.",e)),
255t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>d(e)||_(e)))})(e)
256;if(d(n))return;M("before:highlightBlock",{block:e,language:n}),t=e
257;const s=t.textContent,a=n?h(n,s,!0):p(s);M("after:highlightBlock",{block:e,
258result:a,text:s}),e.innerHTML=a.value,((e,t,n)=>{const s=t?r[t]:n
259;e.classList.add("hljs"),s&&e.classList.add(s)})(e,n,a.language),e.result={
260language:a.language,re:a.relevance,relavance:a.relevance
261},a.second_best&&(e.second_best={language:a.second_best.language,
262re:a.second_best.relevance,relavance:a.second_best.relevance})}const v=()=>{
263v.called||(v.called=!0,
264$("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),
265document.querySelectorAll("pre code").forEach(E))};let w=!1,N=!1;function y(){

Callers

nothing calls this directly

Calls 8

_Function · 0.85
UFunction · 0.85
dFunction · 0.85
MFunction · 0.85
hFunction · 0.85
pFunction · 0.85
addMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected