Index: chrome/content/ui/composer.js |
diff --git a/chrome/content/ui/composer.js b/chrome/content/ui/composer.js |
index d4e1f1633894671f562b4945e8d2243680c2f8ba..7e212504f2760c05b3a0d7f6ef15be33afc91fe9 100644 |
--- a/chrome/content/ui/composer.js |
+++ b/chrome/content/ui/composer.js |
@@ -279,7 +279,7 @@ function updateFilter() |
} |
E("shortpatternWarning").hidden = !isSlow; |
- E("matchWarning").hidden = compiledFilter instanceof RegExpFilter && compiledFilter.matches(item.location, item.typeDescr, item.docDomain, item.thirdParty); |
+ E("matchWarning").hidden = compiledFilter instanceof RegExpFilter && compiledFilter.matches(item.location, RegExpFilter.toTypeMask(item.typeDescr), item.docDomain, item.thirdParty); |
E("filter").value = filter; |
} |
@@ -318,7 +318,7 @@ function updatePatternSelection() |
function testFilter(/**String*/ filter) /**Boolean*/ |
{ |
- return RegExpFilter.fromText(filter + "$" + item.typeDescr).matches(item.location, item.typeDescr, item.docDomain, item.thirdParty); |
+ return RegExpFilter.fromText(filter + "$" + item.typeDescr).matches(item.location, RegExpFilter.toTypeMask(item.typeDescr), item.docDomain, item.thirdParty); |
} |
let anchorStartCheckbox = E("anchorStart"); |