copy from 'matcher'. allow comments and spaces in patterns
This commit is contained in:
parent
34ae181a0a
commit
5419db7608
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user