Skip to content

Commit 6ad13cc

Browse files
committed
Merge branch 'master' of github.com:perl6/nqp
2 parents af28c73 + 1b061e8 commit 6ad13cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/QRegex/P6Regex/Actions.nqp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,8 @@ class QRegex::P6Regex::Actions is HLL::Actions {
431431
elsif $_[1] {
432432
my $ord0 := nqp::ord($_[0]);
433433
my $ord1 := nqp::ord($_[1][0]);
434+
$/.CURSOR.panic("Illegal reversed character range in regex: " ~ ~$_)
435+
if $ord0 > $ord1;
434436
$str := nqp::concat($str, nqp::chr($ord0++)) while $ord0 <= $ord1;
435437
}
436438
else { $str := $str ~ $_[0]; }

0 commit comments

Comments
 (0)