ignore whitespace around pages regexps
Patch by Simon Bünzli. bug=343979 r=myk git-svn-id: svn://10.0.0.236/trunk@218334 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8fb2bb3a71
commit
8df286dfbb
@ -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