Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/slug/path.rb')
-rw-r--r--lib/gitlab/slug/path.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/slug/path.rb b/lib/gitlab/slug/path.rb
index 434f36829a6..893fccb807e 100644
--- a/lib/gitlab/slug/path.rb
+++ b/lib/gitlab/slug/path.rb
@@ -3,10 +3,10 @@
module Gitlab
module Slug
class Path
- LEADING_DASHES = /\A-+/.freeze
+ LEADING_DASHES = /\A-+/
# Eextract local email part if given an email. Will remove @ sign and everything following it.
- EXTRACT_LOCAL_EMAIL_PART = /@.*\z/.freeze
- FORBIDDEN_CHARACTERS = /[^a-zA-Z0-9_\-.]/.freeze
+ EXTRACT_LOCAL_EMAIL_PART = /@.*\z/
+ FORBIDDEN_CHARACTERS = /[^a-zA-Z0-9_\-.]/
PATH_TRAILING_VIOLATIONS = %w[.git .atom .].freeze
DEFAULT_SLUG = 'blank'