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

Function short

wxapp/ydyc.js:37–41  ·  view source on GitHub ↗
(value, max = 500)

Source from the content-addressed store, hash-verified

35}
36
37function short(value, max = 500) {
38 if (value === undefined || value === null) return "";
39 const text = typeof value === "string" ? value : JSON.stringify(value);
40 return text.length > max ? `${text.slice(0, max)}...` : text;
41}
42
43function parseAccount(raw = "") {
44 const text = String(raw || "").trim();

Callers 6

getWxCodeFunction · 0.70
apiMethod · 0.70
callMethod · 0.70
loginMethod · 0.70
doSignOnceMethod · 0.70
doAdRewardOnceMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected