MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / hidePrivacy

Function hidePrivacy

server/common/common.go:16–23  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

14)
15
16func hidePrivacy(msg string) string {
17 for _, r := range conf.PrivacyReg {
18 msg = r.ReplaceAllStringFunc(msg, func(s string) string {
19 return strings.Repeat("*", len(s))
20 })
21 }
22 return msg
23}
24
25// ErrorResp is used to return error response
26// @param l: if true, log error

Callers 4

ErrorPageFunction · 0.85
ErrorWithDataRespFunction · 0.85
ErrorStrRespFunction · 0.85
TestHidePrivacyFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestHidePrivacyFunction · 0.68