diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-21 02:50:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-21 02:50:22 +0300 |
commit | 9dc93a4519d9d5d7be48ff274127136236a3adb3 (patch) | |
tree | 70467ae3692a0e35e5ea56bcb803eb512a10bedb /spec/lib/gitlab/regex_spec.rb | |
parent | 4b0f34b6d759d6299322b3a54453e930c6121ff0 (diff) |
Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43
Diffstat (limited to 'spec/lib/gitlab/regex_spec.rb')
-rw-r--r-- | spec/lib/gitlab/regex_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/lib/gitlab/regex_spec.rb b/spec/lib/gitlab/regex_spec.rb index 1aca3dae41b..f62a3c74005 100644 --- a/spec/lib/gitlab/regex_spec.rb +++ b/spec/lib/gitlab/regex_spec.rb @@ -667,7 +667,14 @@ RSpec.describe Gitlab::Regex do it { is_expected.to match('1.2.3') } it { is_expected.to match('1.3.350') } - it { is_expected.not_to match('1.3.350-20201230123456') } + it { is_expected.to match('1.3.350-20201230123456') } + it { is_expected.to match('1.2.3-rc1') } + it { is_expected.to match('1.2.3g') } + it { is_expected.to match('1.2') } + it { is_expected.to match('1.2.bananas') } + it { is_expected.to match('v1.2.4-build') } + it { is_expected.to match('d50d836eb3de6177ce6c7a5482f27f9c2c84b672') } + it { is_expected.to match('this_is_a_string_only') } it { is_expected.not_to match('..1.2.3') } it { is_expected.not_to match(' 1.2.3') } it { is_expected.not_to match("1.2.3 \r\t") } |