diff options
-rw-r--r-- | app/controllers/import/bitbucket_server_controller.rb | 2 | ||||
-rw-r--r-- | lib/bitbucket_server/representation/repo.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/import/bitbucket_server_controller.rb b/app/controllers/import/bitbucket_server_controller.rb index cf8e414206a..ac6b6a73c7a 100644 --- a/app/controllers/import/bitbucket_server_controller.rb +++ b/app/controllers/import/bitbucket_server_controller.rb @@ -11,7 +11,7 @@ class Import::BitbucketServerController < Import::BaseController # Repository names are limited to 128 characters. They must start with a # letter or number and may contain spaces, hyphens, underscores, and periods. # (https://community.atlassian.com/t5/Answers-Developer-Questions/stash-repository-names/qaq-p/499054) - VALID_BITBUCKET_CHARS = %r(\A[a-zA-z0-9\-_\.\s]*$) + VALID_BITBUCKET_CHARS = /\A[a-zA-z0-9\-_\.\s]*$/ SERVER_ERRORS = [SocketError, OpenSSL::SSL::SSLError, diff --git a/lib/bitbucket_server/representation/repo.rb b/lib/bitbucket_server/representation/repo.rb index cf64f0ac8fa..6e15f7e2fce 100644 --- a/lib/bitbucket_server/representation/repo.rb +++ b/lib/bitbucket_server/representation/repo.rb @@ -18,7 +18,7 @@ module BitbucketServer end def browse_url - link = raw.dig('project', 'links', 'self').first.fetch('href') + raw.dig('project', 'links', 'self').first.fetch('href') end def clone_url |