Make rubocop happy, again

This commit is contained in:
Alexander Meindl
2020-06-09 09:23:06 +02:00
parent 8702f062fa
commit e0e35e6edf
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ class Messenger
end
def object_url(obj)
if Setting.host_name.to_s =~ %r{\A(https?\://)?(.+?)(\:(\d+))?(/.+)?\z}i
if Setting.host_name.to_s =~ %r{\A(https?://)?(.+?)(:(\d+))?(/.+)?\z}i
host = Regexp.last_match(2)
port = Regexp.last_match(4)
prefix = Regexp.last_match(5)

View File

@@ -16,7 +16,7 @@ module RedmineMessenger
repository = changeset.repository
if Setting.host_name.to_s =~ %r{/\A(https?\:\/\/)?(.+?)(\:(\d+))?(\/.+)?\z/i}
if Setting.host_name.to_s =~ %r{/\A(https?://)?(.+?)(:(\d+))?(/.+)?\z/i}
host = Regexp.last_match(2)
port = Regexp.last_match(4)
prefix = Regexp.last_match(5)