aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/rhbzpage.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js
index 282189b..1e870f7 100644
--- a/lib/rhbzpage.js
+++ b/lib/rhbzpage.js
@@ -676,10 +676,17 @@ RHBugzillaPage.prototype.analyzeXorgLog = function analyzeXorgLog(attachID) {
filter(function(line) {
return (that.RE.soughtLines.test(line));
});
+ // Remove headers
+ if (results.length >= 3) {
+ results.splice(0, 3);
+ }
if (results.length > 0) {
results.forEach(function(l) {
preElem.innerHTML += l + "\n";
});
+ // Add a summary
+ preElem.innerHTML += "----------\n" +
+ results.length + " interesting lines found.";
} else {
preElem.innerHTML += "No matching lines found!";
}