Skip to content

Commit

Permalink
[defcon] Exclude reverts of good-faith edits
Browse files Browse the repository at this point in the history
  • Loading branch information
enterprisey committed Jan 21, 2016
1 parent 4ca4c88 commit 3daca4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion defcon/defcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
start=datetime.datetime.now(),
end=datetime.datetime.now() - datetime.timedelta(minutes=30),
changetype="edit"):
if re.search("revert|rv\ |rvv\ |undid", change[u"comment"],
if re.search("revert|rv\ |rvv\ |undid(?!good( |-)faith)", change[u"comment"],
flags=re.IGNORECASE):
num_reverts += 1
rpm = float(num_reverts) / 30
Expand Down

0 comments on commit 3daca4f

Please sign in to comment.