Skip to content

Commit c5a4c0b

Browse files
committed
fix: improve error message formatting in MorseCodeDecode and update XXH64 command aliases
1 parent 6f18ac4 commit c5a4c0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

processors/morse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func (p MorseCodeDecode) Transform(data []byte, f ...Flag) (string, error) {
235235
found = true
236236
}
237237
if !found {
238-
return res, fmt.Errorf("unknown character <" + part + "> in " + codeLang)
238+
return res, fmt.Errorf("unknown character < %s > in + %s", part, codeLang)
239239
}
240240
}
241241

processors/xxhash_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func TestXXHash64_Command(t *testing.T) {
1414
name string
1515
title string
1616
}{
17-
alias: []string{""},
17+
alias: []string{"xxh64", "xxhash64", "xxhash-64"},
1818
description: "Get the XXH64 checksum of your text",
1919
filterValue: "xxHash - XXH64 (xxh-64)",
2020
flags: nil,

0 commit comments

Comments
 (0)