Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Commit

Permalink
copy from 'matcher'. allow comments and spaces in patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
ramok authored and xyb3rt committed May 24, 2014
1 parent 34ae181 commit 5419db7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions url-select
Expand Up @@ -65,8 +65,10 @@ sub on_start {
} elsif ($self->x_resource('matcher.pattern.1')) {
my $current = 1;

while ($self->x_resource("matcher.pattern.$current")) {
push @{$self->{pattern}}, $self->x_resource("matcher.pattern.$current");
while (defined (my $res = $self->x_resource("matcher.pattern.$current"))) {
$res = $self->locale_decode($res);
utf8::encode $res;
push @{$self->{pattern}}, qr($res)x;
$current++;
}
} else {
Expand Down

0 comments on commit 5419db7

Please sign in to comment.