fix regex to pick up another 400 tests
This commit is contained in:
parent
01dcd2b416
commit
ac944aed88
1 changed files with 3 additions and 5 deletions
8
t/i18n.t
8
t/i18n.t
|
|
@ -31,10 +31,8 @@ initialize(); # this line is required
|
||||||
|
|
||||||
my $digits = qr/(\d+)/;
|
my $digits = qr/(\d+)/;
|
||||||
my $bareword = qr/(\w+)/;
|
my $bareword = qr/(\w+)/;
|
||||||
my $quotelike = qr/((['"])$bareword(['"]))/;
|
my $quotelike = qr/((['"])($bareword\s*)+(['"]))/;
|
||||||
my $subscript = qr/([\[{]\w+[\]\}])/;
|
my $sub_args = qr/(($quotelike|$digits)(,\s*)?)+/;
|
||||||
my $variable = qr/(\$\w+($subscript)*)/;
|
|
||||||
my $sub_args = qr/(($quotelike|$digits),?)+/;
|
|
||||||
my $subroutine = qr/
|
my $subroutine = qr/
|
||||||
WebGUI::International::get
|
WebGUI::International::get
|
||||||
\( ##Opening paren for optional arguments
|
\( ##Opening paren for optional arguments
|
||||||
|
|
@ -110,7 +108,7 @@ sub label_finder_pm {
|
||||||
}
|
}
|
||||||
close $pmf;
|
close $pmf;
|
||||||
while ($libFile =~ m/$subroutine/gc) {
|
while ($libFile =~ m/$subroutine/gc) {
|
||||||
my ($label, $namespace) = split /,/, $1;
|
my ($label, $namespace) = split /,\s*/, $1;
|
||||||
push @libLabels, {
|
push @libLabels, {
|
||||||
file=>$File::Find::name,
|
file=>$File::Find::name,
|
||||||
label=>$label,
|
label=>$label,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue