Improve vcs regex (don't match whitespace)

This commit is contained in:
Anthony Sottile 2018-06-04 10:10:14 -07:00
parent bf8369c862
commit c72ad40a6d
2 changed files with 4 additions and 2 deletions

View file

@ -8,7 +8,7 @@ import sys
GITHUB_NON_PERMALINK = re.compile(
b'https://github.com/[^/]+/[^/]+/blob/master/[^# ]+#L\d+',
b'https://github.com/[^/ ]+/[^/ ]+/blob/master/[^# ]+#L\d+',
)