MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / getVersion

Function getVersion

gqftbz.js:809–816  ·  view source on GitHub ↗

* 获取远程版本

(scriptUrl)

Source from the content-addressed store, hash-verified

807 * 获取远程版本
808 */
809async function getVersion(scriptUrl) {
810 let data = await $.getScript(
811 `https://ghproxy.com/https://raw.githubusercontent.com/${scriptUrl}`
812 );
813 let regex = /scriptVersionNow\s*=\s*(["'`])([\d.]+)\1/;
814 let match = data.match(regex);
815 scriptVersionLatest = match ? match[2] : "";
816}
817
818async function getNotice() {
819 try {

Callers

nothing calls this directly

Calls 1

getScriptMethod · 0.45

Tested by

no test coverage detected