-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in case folding characters given by escapes
When we construct a Char node in the ir, we expect the character to be already folded if our regex is case-insensitive. This was true for ordinary characters but was not true if the character was given by an escape. This happened only in the unoptimizing cases - in the optimizing cases we unfold the character to determine all possible matches, which masks the bug. However if regex optimization is disabled then we would panic in debug builds, and fail to match icase in release builds.
- Loading branch information
1 parent
f62db8c
commit 8b842f1
Showing
3 changed files
with
36 additions
and
10 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
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