summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/BMO/Extension.pm15
-rw-r--r--extensions/BMO/lib/Data.pm4
2 files changed, 13 insertions, 6 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index 410731936..5960de78c 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -273,12 +273,19 @@ sub cf_hidden_in_product {
foreach my $product (keys %$products) {
my $components = $products->{$product};
- my $found_component = 0;
+ my $found_component = 0;
if (@$components) {
foreach my $component (@$components) {
- if (grep($_ eq $component, @$component_list)) {
- $found_component = 1;
- last;
+ if (ref($component) eq 'Regexp') {
+ if (grep($_ =~ $component, @$component_list)) {
+ $found_component = 1;
+ last;
+ }
+ } else {
+ if (grep($_ eq $component, @$component_list)) {
+ $found_component = 1;
+ last;
+ }
}
}
}
diff --git a/extensions/BMO/lib/Data.pm b/extensions/BMO/lib/Data.pm
index cb16fd108..02d5aadd3 100644
--- a/extensions/BMO/lib/Data.pm
+++ b/extensions/BMO/lib/Data.pm
@@ -73,7 +73,7 @@ tie(%$cf_visible_in_products, "Tie::IxHash",
"Fennec" => [],
"Fennec Native" => [],
"Marketing" => ["General"],
- "mozilla.org" => ["Release Engineering"],
+ "mozilla.org" => ["Release Engineering", qr/^Release Engineering: /],
"Mozilla Localizations" => [],
"Mozilla Services" => [],
"NSPR" => [],
@@ -107,7 +107,7 @@ tie(%$cf_visible_in_products, "Tie::IxHash",
"Fennec Native" => [],
"Firefox" => [],
"MailNews Core" => [],
- "mozilla.org" => ["Release Engineering"],
+ "mozilla.org" => ["Release Engineering", qr/^Release Engineering: /],
"Mozilla QA" => ["Mozmill Tests"],
"Mozilla Localizations" => [],
"Mozilla Services" => [],