Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
Only match r? at word boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
nrc committed Jun 8, 2015
1 parent 06b789a commit 46e64e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion highfive/newpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def review_msg(reviewer, submitter):
text = review_with_reviewer % reviewer
return text

reviewer_re = re.compile("[rR]\?[:\- ]*@([a-zA-Z0-9\-]+)")
reviewer_re = re.compile("\\b[rR]\?[:\- ]*@([a-zA-Z0-9\-]+)")
unsafe_re = re.compile("\\bunsafe\\b|#!?\\[unsafe_")
submodule_re = re.compile(".*\+Subproject\scommit\s.*", re.DOTALL|re.MULTILINE)

Expand Down

0 comments on commit 46e64e4

Please sign in to comment.