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

Function k

vulnerablecode/static/js/highlight-10.6.0.min.js:68–71  ·  view source on GitHub ↗
(e,t)

Source from the content-addressed store, hash-verified

66"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{
67t.data._beginMatch!==e[1]&&t.ignoreMatch()}})});function _(e,t){
68"."===e.input[e.index-1]&&t.ignoreMatch()}function k(e,t){
69t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",
70e.__beforeBegin=_,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,
71void 0===e.relevance&&(e.relevance=0))}function O(e,t){
72Array.isArray(e.illegal)&&(e.illegal=((...e)=>"("+e.map((e=>u(e))).join("|")+")")(...e.illegal))
73}function M(e,t){if(e.match){
74if(e.begin||e.end)throw Error("begin & end are not supported with match")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected