mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 19:46:54 +00:00
Update regex for VCS permalinks
This commit is contained in:
parent
bf8369c862
commit
321e2602eb
2 changed files with 17 additions and 5 deletions
|
|
@ -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/[^# ]+#',
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue