mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-05 17:03:32 +02:00
Trim sitefilters.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user