We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e21e99e + 2202aaa commit 1a4e523Copy full SHA for 1a4e523
sopel_modules/github/github.py
@@ -59,7 +59,7 @@
59
githubRepoSlug = r'[A-Za-z0-9\.\-_]+'
60
# lots of regex and other globals to make this stuff work
61
baseURL = r'https?://(?:www\.)?github\.com/({username}/{repo})'.format(username=githubUsername, repo=githubRepoSlug)
62
-repoURL = baseURL + r'/?(?!\S)'
+repoURL = baseURL + r'/?(?:#.*|(?!\S))'
63
issueURL = baseURL + r'/(?:issues|pull)/([\d]+)(?:#issuecomment-([\d]+))?'
64
commitURL = baseURL + r'/(?:commit)/([A-z0-9\-]+)'
65
contentURL = baseURL + r'/(?:blob|raw)/([^/\s]+)/([^#\s]+)(?:#L(\d+)(?:-L(\d+))?)?'
0 commit comments