From 8faca0e7ced0666c3929f93fdfd023ef60bf68ca Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 2 Jul 2012 13:00:23 +0800 Subject: Bug 769720: add tracking flags to Release Engineering components --- extensions/BMO/Extension.pm | 15 +++++++++++---- extensions/BMO/lib/Data.pm | 4 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) (limited to 'extensions') 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" => [], -- cgit v1.2.3-24-g4f1b