X-Git-Url: http://git.shiar.net/perl/list-index.git/blobdiff_plain/0f46a9fa54c9ecca0f0c3180b51f7c3079d048a8..f201c1cafae5e0a87e562961316c7650b0e2231a:/lib/List/Index.pm diff --git a/lib/List/Index.pm b/lib/List/Index.pm index ea7b433..3663c24 100644 --- a/lib/List/Index.pm +++ b/lib/List/Index.pm @@ -92,6 +92,7 @@ sub rangematch { my $next = $char; $next = chr( ord($char) + 1 ) if length $s1 > $i + 1; my $last = 'z'; + next if $next gt $last; if (length $s2 > $i) { if ($s2 =~ /^\Q$prefix/) { $last = substr $s2, $i, 1;