diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2025-01-30 07:50:08 -0800 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2025-01-30 07:50:08 -0800 |
| commit | 5481004f208c95dc74e9ea517ed584727b8e2a4d (patch) | |
| tree | ebff6b160e8068e37fa2e2aced5f4ed7c9d070ad /generate | |
| parent | 83e5ac714eca9613af7d866724d09d2bb12fb025 (diff) | |
| download | emoji-5481004f208c95dc74e9ea517ed584727b8e2a4d.tar.zst | |
Strip colons and commas from the short name
Diffstat (limited to 'generate')
| -rw-r--r-- | generate/generate.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generate/generate.go b/generate/generate.go index fe1caa3..9708972 100644 --- a/generate/generate.go +++ b/generate/generate.go @@ -169,7 +169,8 @@ func annotationsInFile(f io.Reader) (map[string]string, error) { annotationsCombined := make(map[string]string, len(emojiAnnotations)) for emoji, annotation := range emojiAnnotations { annotation.annotations = slices.DeleteFunc(annotation.annotations, func(s string) bool { return strings.Contains(annotation.name, s) }) - annotationsStr := annotation.name + annotationsStr := strings.ReplaceAll(annotation.name, ": ", " ") + annotationsStr = strings.ReplaceAll(annotationsStr, ", ", " ") if len(annotation.annotations) > 0 { annotationsStr += " " + strings.Join(annotation.annotations, " ") } |
