Convert some regex to use Gitlab::UntrustedRegexp
What does this MR do and why?
This cherry picks the commit from !116610 (merged), merged into 15.11. This code is needed to support other patches to the 15.10 branch.
The decision to backport this commit was decided upon here, see that thread for full context: https://gitlab.com/gitlab-org/gitlab/-/issues/409555#note_1398094890
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 Steve Abrams