diff options
author | Vincent Composieux <vincent.composieux@gmail.com> | 2016-11-11 12:27:23 +0100 |
---|---|---|
committer | Vincent Composieux <vincent.composieux@gmail.com> | 2016-11-12 09:21:23 +0100 |
commit | af941732ed92ad44a7568964e2a9191d0c72164c (patch) | |
tree | 895fff0839f8077fa8e403e6e5f360266b55d24c /lib | |
parent | d96ec63e80dadca566785ccc670204e7fe433c90 (diff) | |
download | gitlab-ce-af941732ed92ad44a7568964e2a9191d0c72164c.tar.gz |
Added ability to put emojis into repository name
Added ability to put emojis into repository name
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/regex.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb index cb1659f9cee..155ca47e04c 100644 --- a/lib/gitlab/regex.rb +++ b/lib/gitlab/regex.rb @@ -26,12 +26,12 @@ module Gitlab end def project_name_regex - @project_name_regex ||= /\A[\p{Alnum}_][\p{Alnum}\p{Pd}_\. ]*\z/.freeze + @project_name_regex ||= /\A[\p{Alnum}\u{00A9}-\u{1f9c0}_][\p{Alnum}\p{Pd}\u{00A9}-\u{1f9c0}_\. ]*\z/.freeze end def project_name_regex_message - "can contain only letters, digits, '_', '.', dash and space. " \ - "It must start with letter, digit or '_'." + "can contain only letters, digits, emojis, '_', '.', dash, space. " \ + "It must start with letter, digit, emoji or '_'." end def project_path_regex |