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

Function short

wxapp/oppo.js:47–51  ·  view source on GitHub ↗
(value, max = 500)

Source from the content-addressed store, hash-verified

45}
46
47function short(value, max = 500) {
48 if (value === undefined || value === null) return "";
49 const text = typeof value === "string" ? value : JSON.stringify(value);
50 return text.length > max ? `${text.slice(0, max)}...` : text;
51}
52
53function parseAccount(raw = "") {
54 const text = String(raw || "").trim();

Callers 4

getWxCodeFunction · 0.70
miniRequestMethod · 0.70
h5RequestMethod · 0.70
loginMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected