Duplicate masked variables
Summary
Overview
Users can define a masked variables so when it's not shown in the job trace but redacted with [MASKED]. However when there are 2 variables defined for example TEST1=temp4now and TEST2=temp4now111dd it only masks temp4now part of the variables for TEST2 and not the 111dd part. It seems like the masking only matches the value of TEST1 and then ignores the rest when there is 1 variable with the value of another masked variable and from suffix.
Steps to reproduce
.gitlab-ci.yml
job:
image: alpine:3.13
script:
- echo ${TEST1}
- echo ${TEST2}
Actual behavior
Expected behavior
TEST2 variable fully masked
Relevant logs and/or screenshots
https://gitlab.com/steveazz/playground/-/jobs/1259089077

