bfd9d1f197e081b92c07e6614f254bbc77507eeb
- Author
- TheEdgeOfRage <git@theedgeofrage.com>
- Committer
- TheEdgeOfRage <git@theedgeofrage.com>
- Date
Message
Handle &/and interchangeably
Diff
1diff --git a/matching.go b/matching.go
2index 333783245f99c6f6f53920f4b3a5c54eaa3ce5c5..09267d5cea69d0a70e3d5518fa6f1e19e81b1a1e 100644
3--- a/matching.go
4+++ b/matching.go
5@@ -42,6 +42,7 @@ func withoutParentheses(s string) string {
6 }
7
8 func normalize(s string) string {
9+ s = strings.ReplaceAll(s, "&", "and")
10 var b strings.Builder
11 for _, r := range strings.ToLower(s) {
12 if unicode.IsLetter(r) || unicode.IsNumber(r) {