mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 20:22:00 +00:00
ignore whitespace around pages regexps
Patch by Simon B��nzli. bug=343979 r=myk
This commit is contained in:
parent
e463b45a19
commit
bc1f4914c1
@ -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) });
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user