-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that equality on unicode chars works.
Unicode characters were broken as it would only compare the first byte of the character due to the strange way that string indexing works in golang. This converts that to a working rune iteration which is far safer and catches errors. A regression test was added in order to test for this case in the future.
- Loading branch information
1 parent
ca1ec5a
commit 2eb52e2
Showing
2 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters