mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-05 00:45:29 +08:00
14 lines
285 B
Go
14 lines
285 B
Go
package shared
|
|
|
|
import textclean "ds2api/internal/textclean"
|
|
|
|
func CleanVisibleOutput(text string, stripReferenceMarkers bool) string {
|
|
if text == "" {
|
|
return text
|
|
}
|
|
if stripReferenceMarkers {
|
|
text = textclean.StripReferenceMarkers(text)
|
|
}
|
|
return sanitizeLeakedOutput(text)
|
|
}
|