MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / shortValue

Function shortValue

wxapp/longfor.js:115–118  ·  view source on GitHub ↗
(value = "")

Source from the content-addressed store, hash-verified

113}
114
115function shortValue(value = "") {
116 const text = String(value || "");
117 return text ? `${text.slice(0, 4)}***${text.slice(-4)}` : "";
118}
119
120function uuid() {
121 return crypto.randomUUID().replace(/-/g, "");

Callers 2

loginByWxCodeMethod · 0.70
runMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected