Commit a7388249 authored by Harm's avatar Harm Committed by Harm Berntsen

Extend regex of allowed emojis in project name

This allows Unicode 11 emojis in project names.
Based on the descussion in
https://gitlab.com/gitlab-org/gitlab/merge_requests/22776#note_271787663,
we chose for Unicode 11 since that's what gemojione currently supports.
parent 80a7d7e8
...@@ -5,7 +5,7 @@ module Gitlab ...@@ -5,7 +5,7 @@ module Gitlab
extend self extend self
def project_name_regex def project_name_regex
@project_name_regex ||= /\A[\p{Alnum}\u{00A9}-\u{1f9c0}_][\p{Alnum}\p{Pd}\u{00A9}-\u{1f9c0}_\. ]*\z/.freeze @project_name_regex ||= /\A[\p{Alnum}\u{00A9}-\u{1f9ff}_][\p{Alnum}\p{Pd}\u{00A9}-\u{1f9ff}_\. ]*\z/.freeze
end end
def project_name_regex_message def project_name_regex_message
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment