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

Function getModInfo

Rewrite-Parser.js:2006–2012  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

2004
2005//名字简介解析
2006function getModInfo(x) {
2007 const regex = /^#!\s*([^\s]+?)\s*=\s*(.+)/
2008 let key = x.match(regex)[1] == 'keyword' ? 'category' : x.match(regex)[1]
2009 let value = x.match(regex)[2]
2010 modInfoObj[key] = value
2011 //console.log(key)
2012}
2013
2014//获取可莉图标集
2015async function getIcon(icon) {

Callers 1

Rewrite-Parser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected