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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-03-30 02:52:27 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-30 02:52:27 +0300
commit52dd3cdae10174cc35af6698b280acd1431cc4f8 (patch)
tree5dd5616b71029c5c4315961d8663b3a3c80714a5 /lib/gitlab/unicode.rb
parent38dadcee569adfbbb1c9dc99634bba4e9a9128bc (diff)
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.rb6
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