Skip to content

Commit

Permalink
🐛 check for smart quotes as punctuation
Browse files Browse the repository at this point in the history
  • Loading branch information
rsking committed Jun 17, 2024
1 parent 5f882e2 commit 7cc531e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EBook.Downloader.Standard.EBooks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ static string RemoveDiacritics(string input)

static string RemovePunctuation(string text)
{
return string.Concat(text.Where(c => !char.IsPunctuation(c)));
return string.Concat(text.Where(c => !char.IsPunctuation(c) && c is not 'ʻ' and not 'ʼ'));
}
}

Expand Down

0 comments on commit 7cc531e

Please sign in to comment.