Make Gitlab::UntrustedRegexp freezable
What does this MR do and why?
Make Gitlab::UntrustedRegexp
freezable so that it can be frozen in a constant. Since most regular expressions don't change, these can be compiled into a constant and guaranteed it won't mutate.
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.