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

Function B

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

Source from the content-addressed store, hash-verified

87 e.__beforeBegin=R,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,
88 void 0===e.relevance&&(e.relevance=0))}function L(e,n){
89 Array.isArray(e.illegal)&&(e.illegal=p(...e.illegal))}function B(e,n){
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]

Callers

nothing calls this directly

Calls 1

ErrorClass · 0.85

Tested by

no test coverage detected