chore: use strings.ReplaceAll (#3801)

This commit is contained in:
Zhizhen He authored and GitHub committed 2024-05-18 17:06:33 +09:00
1 parent 0994d9c881
commit 01e7668915
6 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -1025,7 +1025,7 @@ func (w *LightWindow) Print(text string) {
}
func cleanse(str string) string {
return strings.Replace(str, "\x1b", "", -1)
return strings.ReplaceAll(str, "\x1b", "")
}
func (w *LightWindow) CPrint(pair ColorPair, text string) {