Fixes #3512 - allow http for local gitlab or github enterprise instance

This commit is contained in:
jan-wi 2021-04-16 19:00:54 +02:00 committed by Thorsten Eckel
parent 0fb4c1234e
commit a5de91064a
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ class GitHub
end
def variables!(url)
if url !~ %r{^https://([^/]+)/([^/]+)/([^/]+)/issues/(\d+)$}
if url !~ %r{^https?://([^/]+)/([^/]+)/([^/]+)/issues/(\d+)$}
raise Exceptions::UnprocessableEntity, 'Invalid GitHub issue link format'
end

View file

@ -97,7 +97,7 @@ class GitLab
end
def variables(url)
if url !~ %r{^https://([^/]+)/(.*)/-/issues/(\d+)$}
if url !~ %r{^https?://([^/]+)/(.*)/-/issues/(\d+)$}
raise Exceptions::UnprocessableEntity, 'Invalid GitLab issue link format'
end