diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-19 15:57:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-19 15:57:54 +0300 |
commit | 419c53ec62de6e97a517abd5fdd4cbde3a942a34 (patch) | |
tree | 1f43a548b46bca8a5fb8fe0c31cef1883d49c5b6 /lib/gitlab/golang.rb | |
parent | 1da20d9135b3ad9e75e65b028bffc921aaf8deb7 (diff) |
Add latest changes from gitlab-org/gitlab@16-5-stable-eev16.5.0-rc42
Diffstat (limited to 'lib/gitlab/golang.rb')
-rw-r--r-- | lib/gitlab/golang.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/golang.rb b/lib/gitlab/golang.rb index 1b625a3a514..f0afe493019 100644 --- a/lib/gitlab/golang.rb +++ b/lib/gitlab/golang.rb @@ -32,7 +32,7 @@ module Gitlab # vX.Y.(Z+1)-0.yyyymmddhhmmss-sha1337beef0, when most recent prior tag is vX.Y.Z if version.minor != 0 || version.patch != 0 - m = /\A(.*\.)?0\./.freeze.match pre + m = /\A(.*\.)?0\./.match pre return false unless m pre = pre[m[0].length..] @@ -40,7 +40,7 @@ module Gitlab # This pattern is intentionally more forgiving than the patterns # above. Correctness is verified by #validate_pseudo_version. - /\A\d{14}-\h+\z/.freeze.match? pre + /\A\d{14}-\h+\z/.match? pre end def parse_pseudo_version(semver) |