Skip to content

Commit

Permalink
mtgmatcher/replacer: Drop wrong escape characters
Browse files Browse the repository at this point in the history
  • Loading branch information
kodawah committed Aug 23, 2024
1 parent 9ae6932 commit 0813008
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mtgmatcher/replacer.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ var replacer = strings.NewReplacer(
// Hopefully "of the" is specific enough
"of the", "of the",

// Wrong escaping or conversion
""", "",

// Quotes and commas and whatnot
"''", "",
"“", "",
Expand Down
4 changes: 4 additions & 0 deletions mtgmatcher/replacer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ var NormalizeTests = []NormalizeTest{
In: "Welcome to...",
Out: "welcometo",
},
{
In: "Henzie "Toolbox" Torre",
Out: "henzietoolboxtorre",
},
}

func TestNormalize(t *testing.T) {
Expand Down

0 comments on commit 0813008

Please sign in to comment.