aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-03-09 15:15:35 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2016-03-09 15:15:35 +0200
commiteb134477e5b8434a0be8fc34ea14713b48590df2 (patch)
treea187542fa6ca51cbe29775cb3a85ab00376249fc
parent33a8545e42858e68e82e9f051ac48f4455bdfd2e (diff)
downloadregexp-opt-eb134477e5b8434a0be8fc34ea14713b48590df2.tar.gz
regexp-opt-eb134477e5b8434a0be8fc34ea14713b48590df2.tar.bz2
Recognize single-character suffixes.
-rw-r--r--lib/List/Regexp.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/List/Regexp.pm b/lib/List/Regexp.pm
index 6fd5773..e3332af 100644
--- a/lib/List/Regexp.pm
+++ b/lib/List/Regexp.pm
@@ -96,7 +96,7 @@ sub parse {
if ($res[1] < 0) {
my @rv = map { [ reverse @{$_} ] } @t;
@res = split_prefix \@rv;
- if ($res[1] > 0) {
+ if ($res[1] >= 0) {
my @x = reverse @{$rv[0]}[0..$res[1]];
my $sfxlen = $#x;
my $sfx = join('', @x);

Return to:

Send suggestions and report system problems to the System administrator.