Skip to content

Performance/RegexpMatch: Fix some offenses - lib/gitlab/

Peter Leitzen requested to merge pl-rubocop-fix-performance-regexp-match-3 into master

What does this MR do and why?

This MR fixes some offenses of 👮 Performance/RegexpMatch enabled via !125399 (merged).

Auto-corrected via:

rubocop -a --only Performance/RegexpMatch ...

Auto-corrections manually reviewed and verified.

MR train 🚋

How to set up and validate locally

rubocop --only Performance/RegexpMatch

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Peter Leitzen

Merge request reports