Potential problem with branch name push rule regex example
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=352102) </details> <!--IssueSummary end--> <!-- * Use this issue template for suggesting new docs or updates to existing docs. Note: Doc work as part of feature development is covered in the Feature Request template. * For issues related to features of the docs.gitlab.com site, see https://gitlab.com/gitlab-org/gitlab-docs/issues/ * For information about documentation content and process, see https://docs.gitlab.com/ee/development/documentation/ --> ### Problem to solve <!-- Include the following detail as necessary: * What product or feature(s) affected? * What docs or doc section affected? Include links or paths. * Is there a problem with a specific document, or a feature/process that's not addressed sufficiently in docs? * Any other ideas or requests? --> Regex example for the branch names section of push rules seems to use potentially incorrect syntax. The example has `(feature|hotfix)\/*` which reads to me as can lead with either `feature` or `hotfix` followed by zero of more `/`. I feel like the better/correct example regex would be `(feature|hotfix)\/.*`, which would be seen as lead with either `feature` or `hotfix` then followed by `/` then zero or more of any character. If the original regex is intentional, some tips on why would be helpful. ### Further details <!-- * Any concepts, procedures, reference info we could add to make it easier to successfully use GitLab? * Include use cases, benefits, and/or goals for this work. * If adding content: What audience is it intended for? (What roles and scenarios?) For ideas, see personas at https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/ or the persona labels at https://gitlab.com/groups/gitlab-org/-/labels?subscribed=&search=persona%3A --> https://gitlab.com/gitlab-org/gitlab/-/commit/2fb820e133c417a5e8c08981e72792553b56a747 ### Proposal If this is a mistake rather than an intentional choice, updating the example with all relevant components in the project would address the issue. ### Who can address the issue Anyone familiar with the push rules feature and re2.
issue