1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 18:54:13 +01:00

Trim sitefilters.

This commit is contained in:
Kris Maglione
2011-12-31 19:11:26 -05:00
parent ff4e0fa8f8
commit a6f7fc4b5e
2 changed files with 3 additions and 1 deletions

View File

@@ -420,6 +420,8 @@ var Styles = Module("Styles", {
* @returns {nsIURI -> boolean}
*/
matchFilter: function (filter) {
filter = filter.trim();
if (filter === "*")
var test = function test(uri) true;
else if (!/^(?:[a-z-]+:|[a-z-.]+$)/.test(filter)) {