From: Simon Green Date: Sun, 30 Oct 2016 04:55:23 +0000 (+1000) Subject: Bug 228444 - Checking for unquoted non regex variable interpolated into regex X-Git-Tag: release-5.1.2~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c60fba26b1fa51ec302d05dc6e76236d2f54ba4;p=thirdparty%2Fbugzilla.git Bug 228444 - Checking for unquoted non regex variable interpolated into regex --- diff --git a/t/010dependencies.t b/t/010dependencies.t index 4b7ca223d3..1b6c270a8c 100644 --- a/t/010dependencies.t +++ b/t/010dependencies.t @@ -69,7 +69,7 @@ foreach my $module (keys %mods) { $used =~ s#/#::#g; $used =~ s#\.pm$##; $used =~ s#\$module#[^:]+#; - $used =~ s#\${[^}]+}#[^:]+#; + $used =~ s#\$\{[^}]+}#[^:]+#; $used =~ s#[" ]##g; push(@use, grep(/^\Q$used\E$/, keys %mods)); }