MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / E

Function E

pages/viewScriptSource/libs/highlight.min.js:51–55  ·  view source on GitHub ↗
(e,{joinWith:t})

Source from the content-addressed store, hash-verified

49function b(e){return RegExp(e.toString()+"|").exec("").length-1}
50const m=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./
51;function E(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n
52;let i=g(e),r="";for(;i.length>0;){const e=m.exec(i);if(!e){r+=i;break}
53r+=i.substring(0,e.index),
54i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+(Number(e[1])+t):(r+=e[0],
55"("===e[0]&&n++)}return r})).map((e=>`(${e})`)).join(t)}
56const x="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",y="\\b\\d+(\\.\\d+)?",_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",O="\\b(0b[01]+)",v={
57begin:"\\\\[\\s\\S]",relevance:0},N={scope:"string",begin:"'",end:"'",
58illegal:"\\n",contains:[v]},k={scope:"string",begin:'"',end:'"',illegal:"\\n",

Callers 5

FFunction · 0.70
compileMethod · 0.70
mFunction · 0.70
dFunction · 0.70
xFunction · 0.70

Calls 13

YFunction · 0.85
replaceMethod · 0.80
considerAllMethod · 0.80
closeAllNodesMethod · 0.80
finalizeMethod · 0.80
toHTMLMethod · 0.80
gFunction · 0.70
OFunction · 0.70
KFunction · 0.70
VFunction · 0.70
wFunction · 0.70
execMethod · 0.45

Tested by

no test coverage detected