MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / $

Function $

hyperagent-ext/media/scripts/highlight.min.js:92–93  ·  view source on GitHub ↗
(e,n)

Source from the content-addressed store, hash-verified

90 if(e.match){
91 if(e.begin||e.end)throw Error("begin & end are not supported with match")
92 ;e.begin=e.match,delete e.match}}function $(e,n){
93 void 0===e.relevance&&(e.relevance=1)}const z=(e,n)=>{if(!e.beforeMatch)return
94 ;if(e.starts)throw Error("beforeMatch cannot be used with starts")
95 ;const t=Object.assign({},e);Object.keys(e).forEach((n=>{delete e[n]
96 })),e.keywords=t.keywords,e.begin=m(t.beforeMatch,g(t.begin)),e.starts={

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected