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

Function getModInfo

Rewrite-Parser.beta.js:2409–2415  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

2407
2408//名字简介解析
2409function getModInfo(x) {
2410 const regex = /^#!\s*([^\s]+?)\s*=\s*(.+)/
2411 let key = x.match(regex)[1] == 'keyword' ? 'category' : x.match(regex)[1]
2412 let value = x.match(regex)[2]
2413 modInfoObj[key] = value
2414 //console.log(key)
2415}
2416
2417//获取可莉图标集
2418async function getIcon(icon) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected