From 967d2526d0de56241dfd98bebe9ad01a369887cb Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sun, 7 Mar 2010 16:41:36 +0100 Subject: fix issue 30 ... new format of Xorg.0.log --- bugzillaBugTriage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js index fa87744..0eb2e63 100644 --- a/bugzillaBugTriage.js +++ b/bugzillaBugTriage.js @@ -55,7 +55,9 @@ var msgStrs = {}; var CommentRe = new RegExp("^\\s*#"); var BlankLineRe = new RegExp("^\\s*$"); -var ChipsetRE = new RegExp("^\\(--\\) ([A-Za-z]+)\\([0-9]?\\): Chipset: (.*)$"); +// nová řádka +// [ 65.631] (--) intel(0): Chipset: "845G" +var ChipsetRE = new RegExp("^\\s*\\[?[ 0-9.]*\\]?\\s*\\(--\\) ([A-Za-z]+)\\([0-9]?\\): Chipset: (.*)$"); var ATIgetIDRE = new RegExp("^.*\\(ChipID = 0x([0-9a-fA-F]+)\\).*$"); var AbrtRE = new RegExp("^\\s*\\[abrt\\]"); var signalHandlerRE = new RegExp("^\\s*#[0-9]*\\s*"); @@ -1041,6 +1043,7 @@ BzPage.prototype.fillInChipMagic = function () { filter(function (v,i,a) { return ChipsetRE.test(v); }); + console.log("interestingLineArr = " + interestingLineArr.toSource()); if (interestingLineArr.length >0) { interestingArray = ChipsetRE.exec(interestingLineArr[0]); interestingLine = interestingArray[2]. -- cgit