Update regex for VCS permalinks

This commit is contained in:
Max Rozentsveyg 2018-06-04 12:21:15 -04:00
parent bf8369c862
commit 321e2602eb
2 changed files with 17 additions and 5 deletions

View file

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