ignore whitespace around pages regexps

Patch by Simon B��nzli.
bug=343979
r=myk
This commit is contained in:
myk%mozilla.org 2006-07-18 20:55:42 +00:00
parent e463b45a19
commit bc1f4914c1

View File

@ -1207,7 +1207,8 @@ MicrosummaryGenerator.prototype = {
node.namespaceURI != MICSUM_NS ||
(node.nodeName != "include" && node.nodeName != "exclude"))
continue;
this._rules.push({ type: node.nodeName, regexp: new RegExp(node.textContent) });
var urlRegexp = node.textContent.replace(/^\s+|\s+$/g, "");
this._rules.push({ type: node.nodeName, regexp: new RegExp(urlRegexp) });
}
}