lib/tutter/action/sppuppet.rb in tutter-sppuppet-1.1.3 vs lib/tutter/action/sppuppet.rb in tutter-sppuppet-1.1.4
- old
+ new
@@ -78,10 +78,10 @@
end
end
match = /^(:?([+-])1:?|LGTM)/.match(i.body)
if match
- score = match[1] == '+' ? 1 : -1
+ score = match[2] == '-' ? 1 : -1
# pull request submitter cant +1
unless pr.user.login == i.attrs[:user].attrs[:login]
votes[i.attrs[:user].attrs[:login]] = score
end
end