diff options
author | Hiroki Konishi <relastle@gmail.com> | 2021-09-28 16:29:01 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2021-09-28 18:07:22 +0900 |
commit | 15e20fcae1c3df4e1988bcb10f53f9d2afe743e1 (patch) | |
tree | 6e674af4330744ce9e47f6cd77ad5c435e4caf08 /src/ansi_test.go | |
parent | f4f47f5fe32db500765b47d937f5eb8fa27be130 (diff) |
fix: spelling `Refence` -> `Reference`
Diffstat (limited to 'src/ansi_test.go')
-rw-r--r-- | src/ansi_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ansi_test.go b/src/ansi_test.go index 9ad78eb3..5621382e 100644 --- a/src/ansi_test.go +++ b/src/ansi_test.go @@ -20,7 +20,7 @@ import ( // - http://ascii-table.com/ansi-escape-sequences-vt-100.php // - http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x405.html // - https://invisible-island.net/xterm/ctlseqs/ctlseqs.html -var ansiRegexRefence = regexp.MustCompile("(?:\x1b[\\[()][0-9;]*[a-zA-Z@]|\x1b][0-9];[[:print:]]+(?:\x1b\\\\|\x07)|\x1b.|[\x0e\x0f]|.\x08)") +var ansiRegexReference = regexp.MustCompile("(?:\x1b[\\[()][0-9;]*[a-zA-Z@]|\x1b][0-9];[[:print:]]+(?:\x1b\\\\|\x07)|\x1b.|[\x0e\x0f]|.\x08)") func testParserReference(t testing.TB, str string) { t.Helper() @@ -35,7 +35,7 @@ func testParserReference(t testing.TB, str string) { s := str for i := 0; ; i++ { got := toSlice(nextAnsiEscapeSequence(s)) - exp := ansiRegexRefence.FindStringIndex(s) + exp := ansiRegexReference.FindStringIndex(s) equal := len(got) == len(exp) if equal { @@ -408,7 +408,7 @@ func BenchmarkNextAnsiEscapeSequence_Regex(b *testing.B) { for i := 0; i < b.N; i++ { s := ansiBenchmarkString for { - a := ansiRegexRefence.FindStringIndex(s) + a := ansiRegexReference.FindStringIndex(s) if len(a) == 0 { break } |