Index: chrome/content/ui/composer.js |
diff --git a/chrome/content/ui/composer.js b/chrome/content/ui/composer.js |
index d4e1f1633894671f562b4945e8d2243680c2f8ba..26e4578d0eef0fd18a74e1da1661039492c4b6d0 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.typeMap[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.typeMap[item.typeDescr], item.docDomain, item.thirdParty); |
} |
let anchorStartCheckbox = E("anchorStart"); |