We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af28c73 + 1b061e8 commit 6ad13ccCopy full SHA for 6ad13cc
src/QRegex/P6Regex/Actions.nqp
@@ -431,6 +431,8 @@ class QRegex::P6Regex::Actions is HLL::Actions {
431
elsif $_[1] {
432
my $ord0 := nqp::ord($_[0]);
433
my $ord1 := nqp::ord($_[1][0]);
434
+ $/.CURSOR.panic("Illegal reversed character range in regex: " ~ ~$_)
435
+ if $ord0 > $ord1;
436
$str := nqp::concat($str, nqp::chr($ord0++)) while $ord0 <= $ord1;
437
}
438
else { $str := $str ~ $_[0]; }
0 commit comments