Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow Unicode literals in character classes when Unicode is disabled.
When Unicode mode is disabled, we also disable the use of Unicode literals in the regular expression, since it can lead to unintuitive behavior. In this case, Unicode literals in character classes were not disallowed, and subsequent code filtered them out, which resulted in an empty character class. The compiler assumes that empty character classes are not allowed, and so this causes an assert to trigger. Fixes #250.
- Loading branch information