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

Function shortValue

wxapp/mfd.js:63–66  ·  view source on GitHub ↗
(value = "")

Source from the content-addressed store, hash-verified

61}
62
63function shortValue(value = "") {
64 const text = String(value || "");
65 return text ? `${text.slice(0, 4)}***${text.slice(-4)}` : "";
66}
67
68function md5(text) {
69 return crypto.createHash("md5").update(String(text)).digest("hex");

Callers 2

runMethod · 0.70
loginByWxCodeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected