summaryrefslogtreecommitdiff
path: root/src/ansi_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/ansi_test.go')
-rw-r--r--src/ansi_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ansi_test.go b/src/ansi_test.go
index b5481e5f..55f7fc08 100644
--- a/src/ansi_test.go
+++ b/src/ansi_test.go
@@ -342,8 +342,8 @@ func TestAnsiCodeStringConversion(t *testing.T) {
state := interpretCode(code, prevState)
if expected != state.ToString() {
t.Errorf("expected: %s, actual: %s",
- strings.Replace(expected, "\x1b[", "\\x1b[", -1),
- strings.Replace(state.ToString(), "\x1b[", "\\x1b[", -1))
+ strings.ReplaceAll(expected, "\x1b[", "\\x1b["),
+ strings.ReplaceAll(state.ToString(), "\x1b[", "\\x1b["))
}
}
assert("\x1b[m", nil, "")