Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes RT#130911: https://rt.perl.org/Ticket/Display.html?id=130911 Fixes RT#130127: https://rt.perl.org/Ticket/Display.html?id=130127 Fixes RT#130125: https://rt.perl.org/Ticket/Display.html?id=130125 Fixes RT#130124: https://rt.perl.org/Ticket/Display.html?id=130124 - Negative values are treated as zero. The only thing I'm unsure of here is that /{2..1}/ throws about empty Range, while {-1..-2} would match zero characters, since it's effectively {0..0} - Throw typed exceptions; don't return Failures (they get exploded somewhere in the regex engine, causing poor errors) - Add X::Syntax::Regex::QuantifierValue exception. The X::Syntax isn't a perfect classification, but all the other Regex errors are under this umbrella, so this felt righter than creating an exception outside of X::Syntax::Regex - Dies with "cannot unbox to native integer" on large Int values, which is a bit unhelpful, but this behaviour existed without this patch
- Loading branch information
1 parent
80d6b42
commit 681d6be
Showing
3 changed files
with
68 additions
and
12 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
Looks like you're missing a 'use' here.