MCPcopy Index your code
hub / github.com/idank/explainshell / m

Function m

explainshell/web/static/js/highlight.min.js:52–56  ·  view source on GitHub ↗
(e,{joinWith:t})

Source from the content-addressed store, hash-verified

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

Callers 4

ZFunction · 0.70
compileMethod · 0.70
yFunction · 0.70
wFunction · 0.70

Calls 11

lFunction · 0.70
GFunction · 0.70
NFunction · 0.70
EFunction · 0.70
fFunction · 0.70
gFunction · 0.70
uFunction · 0.70
dFunction · 0.70
hFunction · 0.70
execMethod · 0.45
closeNodeMethod · 0.45

Tested by

no test coverage detected