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>2019-10-31 21:06:53 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-31 21:06:53 +0300
commit996f700997805b3590da8d8afdd19d193989078a (patch)
treefb555d6012ea1a6f018694b62bba5c68c8c623e1 /lib/gitlab/regex.rb
parent083d64c6468a070ae7b0b406ead8d87da27d1d22 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/regex.rb')
-rw-r--r--lib/gitlab/regex.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb
index 3d1f15c72ae..607f5321856 100644
--- a/lib/gitlab/regex.rb
+++ b/lib/gitlab/regex.rb
@@ -128,6 +128,10 @@ module Gitlab
def aws_arn_regex_message
"must be a valid Amazon Resource Name"
end
+
+ def utc_date_regex
+ @utc_date_regex ||= /\A[0-9]{4}-[0-9]{2}-[0-9]{2}\z/.freeze
+ end
end
end