-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an old bug that can manifest during factoring.
`AddFoldedRange()` can terminate prematurely if the character class already contains the rune. For example, if it contains `a` and we want to add folded `a`, it sees `a` and stops without adding `A`. To avoid that, we use an empty character class and then merge it. Fixes #467. Change-Id: I1f26b182e23b8a03da5d98107705bdf443d931d6 Reviewed-on: https://code-review.googlesource.com/c/re2/+/62270 Reviewed-by: Alex Chernyakhovsky <[email protected]> Reviewed-by: Paul Wankadia <[email protected]>
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
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