MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / toJsc

Function toJsc

Rewrite-Parser.beta.js:2770–2777  ·  view source on GitHub ↗
(jsurl, jscStatus, jsc2Status, jsfrom)

Source from the content-addressed store, hash-verified

2768} //isJsCon结束
2769
2770function toJsc(jsurl, jscStatus, jsc2Status, jsfrom) {
2771 if (jscStatus == true || jsc2Status == true) {
2772 let jsFileName = jsurl.substring(jsurl.lastIndexOf('/') + 1, jsurl.lastIndexOf('.'))
2773 return (jsurl = jsPre + jsurl + jsSuf.replace(/_yuliu_/, jsFileName).replace(/_js_from_/, jsfrom))
2774 } else {
2775 return jsurl
2776 }
2777}
2778
2779function shNotify(box) {
2780 noNtf == false &&

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected