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

Function x

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

Source from the content-addressed store, hash-verified

200for(;e.endsParent&&e.parent;)e=e.parent;return e}}
201if(e.endsWithParent)return m(e.parent,t,n)}function b(e){
202return 0===R.matcher.regexIndex?(M+=e[0],1):(I=!0,0)}function x(e){
203const t=e[0],n=c.substr(e.index),s=m(R,e,n);if(!s)return G;const r=R
204;r.skip?M+=t:(r.returnEnd||r.excludeEnd||(M+=t),d(),r.excludeEnd&&(M=t));do{
205R.className&&O.closeNode(),R.skip||R.subLanguage||(A+=R.relevance),R=R.parent
206}while(R!==s.parent)
207;return s.starts&&(s.endSameAsBegin&&(s.starts.endRe=s.endRe),
208h(s.starts)),r.returnEnd?0:t.length}let E={};function v(t,n){const a=n&&n[0]
209;if(M+=t,null==a)return d(),0
210;if("begin"===E.type&&"end"===n.type&&E.index===n.index&&""===a){
211if(M+=c.slice(n.index,n.index+1),!i){const t=Error("0 width match regex")

Callers 1

vFunction · 0.85

Calls 4

mFunction · 0.85
dFunction · 0.85
hFunction · 0.85
closeNodeMethod · 0.45

Tested by

no test coverage detected