From 25c42de9e82f3da2ed495a6d356b28d5f5198a7b Mon Sep 17 00:00:00 2001 From: komar Date: Thu, 1 May 2014 16:59:31 +0200 Subject: [PATCH] matcher.pattern. starts from 0 --- url-select | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/url-select b/url-select index bb1e047..7983800 100644 --- a/url-select +++ b/url-select @@ -62,8 +62,8 @@ sub on_start { if ($self->x_resource('matcher.pattern')) { @{$self->{pattern}} = ($self->x_resource('matcher.pattern')); - } elsif ($self->x_resource('matcher.pattern.1')) { - my $current = 1; + } elsif ($self->x_resource('matcher.pattern.0')) { + my $current = 0; while (defined (my $res = $self->x_resource("matcher.pattern.$current"))) { $res = $self->locale_decode($res);