Skip to content

Commit

Permalink
Ignore numbers under #10, so that comments like "The #1 reason" don't…
Browse files Browse the repository at this point in the history
… result in a link.
  • Loading branch information
thobbs committed Nov 29, 2010
1 parent 38c6b9d commit 988f3dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def checklinks(self, user, msg):
match = TICKET_RE.search(msg)
if match:
ticket = int(match.group(1))
if ticket < 10:
return
url = 'http://issues.apache.org/jira/browse/CASSANDRA-%d' % (ticket,)
self.msg(user, url)
else:
Expand Down

0 comments on commit 988f3dd

Please sign in to comment.