diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-29 23:52:27 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-29 23:52:27 +0000 |
commit | 52dd3cdae10174cc35af6698b280acd1431cc4f8 (patch) | |
tree | 5dd5616b71029c5c4315961d8663b3a3c80714a5 /lib/gitlab/unicode.rb | |
parent | 38dadcee569adfbbb1c9dc99634bba4e9a9128bc (diff) | |
download | gitlab-ce-52dd3cdae10174cc35af6698b280acd1431cc4f8.tar.gz |
Add latest changes from gitlab-org/security/gitlab@15-9-stable-ee
Diffstat (limited to 'lib/gitlab/unicode.rb')
-rw-r--r-- | lib/gitlab/unicode.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/unicode.rb b/lib/gitlab/unicode.rb index b49c5647dab..f291ea1b4ee 100644 --- a/lib/gitlab/unicode.rb +++ b/lib/gitlab/unicode.rb @@ -9,6 +9,12 @@ module Gitlab # https://idiosyncratic-ruby.com/41-proper-unicoding.html BIDI_REGEXP = /\p{Bidi Control}/.freeze + # Regular expression for identifying space characters + # + # In web browsers space characters can be confused with simple + # spaces which may be misleading + SPACE_REGEXP = /\p{Space_Separator}/.freeze + class << self # Warning message used to highlight bidi characters in the GUI def bidi_warning |