-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle whitespace uniformly using unicode tr31.
Previously, we would use hard-coded ASCII whitespace characters, while also using rust std library functions that use unicode whitespace. This adds a series of regular expressions, and helper functions for use with the rust std library functions `trim_matches()`, etc. So that accepted whitespace characters are treated uniformly. The subset of whitespace characters now accepted are those specified in `Pattern_White_Space` from https://unicode.org/reports/tr31/
- Loading branch information
Showing
1 changed file
with
62 additions
and
27 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