-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not increment prefix upper bound if there are no tokens.
This change fixes a bug wherein `Glob::partition` panics if the `Glob` is empty and has no tokens. In this case, `invariant_text_prefix_upper_bound` returns `1`, but should return `0`.
- Loading branch information
1 parent
1afcda8
commit 561a332
Showing
2 changed files
with
17 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