Permalink
Browse files

Another round of small fixes

  • Loading branch information...
1 parent 75ee051 commit b26e2c188925d9e8f2fdd2e7e87abe6e5bc58b33 @tschneidereit tschneidereit committed May 13, 2012
Showing with 10 additions and 9 deletions.
  1. +6 −6 data/js/bzmail.js
  2. +1 −1 lib/main.js
  3. +3 −2 package.json
View
@@ -41,23 +41,23 @@ var rbug = replacer(/([bB]ug:?\s*)(\d+)/,
bug('$2', '$1$2'));
// Rewrite bugs in the final column of a table
-var rtablebug1 = replacer(/\|(\d+(?!-))\n/,
+var rtablebug1 = replacer(/\|(\d+)[^.-]\n/,
'|' + bug('$1') + '\n');
-var rtablebug2 = replacer(/\|(\d+(?!-)), (\d+(?!-))\n/,
+var rtablebug2 = replacer(/\|(\d+)[^.-], (\d+)[^.-]\n/,
'|' + bug('$1') + ', ' + bug('$2') + '\n');
-var rtablebug3 = replacer(/\|(\d+(?!-)), (\d+(?!-)), (\d+(?!-))([,\n])/,
+var rtablebug3 = replacer(/\|(\d+)[^.-], (\d+)[^.-], (\d+)[^.-]([,\n])/,
'|' + bug('$1') + ', ' + bug('$2') + ', ' + bug('$3') + '$4');
// Rewrite bugs in the middle column of a table
-var rtablebug4 = replacer(/\|(\d+(?!-))(\s+|)/,
+var rtablebug4 = replacer(/\|(\d+)[^.-](\s+|)/,
'|' + bug('$1') + '$2');
-var rtablebug5 = replacer(/\|(\d+(?!-)), (\d+(?!-))(\s+|)/,
+var rtablebug5 = replacer(/\|(\d+)[^.-], (\d+)[^.-](\s+|)/,
'|' + bug('$1') + ', ' + bug('$2') + '$3');
-var rtablebug6 = replacer(/\|(\d+(?!-)), (\d+(?!-)), (\d+(?!-))([,\s]|)/,
+var rtablebug6 = replacer(/\|(\d+)[^.-], (\d+)[^.-], (\d+)[^.-]([,\s]|)/,
'|' + bug('$1') + ', ' + bug('$2') + ', ' + bug('$3') + '$4');
var rtableattachment = replacer(/Attachment #(\d+)/, "Attachment #" + attachment('$1'));
View
@@ -3,7 +3,7 @@ var data = require("self").data;
exports.main = function(options, callback) {
pageMod.PageMod({
- include: /.+mail\.google\.com\/mail\/.+\?shva.+/,
+ include: /.+mail\.google\.com\/mail\/.+shva=.+/,
contentScriptWhen: 'end',
contentScriptFile: [
data.url("js/bzmail.js")
View
@@ -1,8 +1,9 @@
{
"description": "Makes bugzilla more palatable for Gmail users.",
"license": "BSD",
- "author": "Paul Biggar (http://paulbiggar.com) <paul.biggar@gmail.com>, Till Schneidereit (http://www.tillschneidereit.de) <tschneidereit@gmail.com>",
- "version": "0.2",
+ "author": "Paul Biggar (http://paulbiggar.com) <paul.biggar@gmail.com>",
+ "contributors" : ["Till Schneidereit (http://www.tillschneidereit.de) <tschneidereit@gmail.com>"],
+ "version": "0.2.1",
"fullName": "Bugmail Tweaks",
"id": "jid0-86fN5AegPXB2C1BDQv53aTcG4rA"
}

0 comments on commit b26e2c1

Please sign in to comment.