MCPcopy Create free account
hub / github.com/danvk/webdiff / b

Function b

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

Source from the content-addressed store, hash-verified

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

Callers 5

KFunction · 0.70
compileMethod · 0.70
dFunction · 0.70
CFunction · 0.70
RFunction · 0.70

Calls 6

dFunction · 0.70
TFunction · 0.70
OFunction · 0.70
EFunction · 0.70
execMethod · 0.45
addTextMethod · 0.45

Tested by

no test coverage detected