Fix a Ruby2 RuboCop offense
What does this MR do and why?
The ruby2
branch is failing because of this, see https://gitlab.com/gitlab-org/gitlab/-/jobs/3664317986.
The regex was introduced by !109887 (diffs).
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Peter Leitzen