Permalink
Browse files

Fixed issue with negative ratings not being picked up

  • Loading branch information...
1 parent eea16b8 commit b4c71eccd5f1a5d177cfde54e916a2f9fe37a41c @brymck committed Jun 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/content.js
View
@@ -90,7 +90,7 @@ var VimRatings = (function() {
var $rating = $("td:contains('Rating')", $karma);
var text = $rating.text();
var numbers = [];
- var re = /\d+/g;
+ var re = /-?\d+/g;
var match;
while (match = re.exec(text)) {
numbers.push(match);

0 comments on commit b4c71ec

Please sign in to comment.