How to ignore case for push rule? `/i` not working

Summary

How to set case insensitive flag in regex for push rules? I am assuming that this is currently not possible, if correct I suggest adding an option/checkbox to allow the case insensitive flag to be set OR allow appending global flags.

Steps to reproduce

Add a push rule with ^((dev|test|release)|(ux-)?(US|DE|CHG|CTASK|INC|KB|PRB|PTASK|RITM|REQ|TASK)[0-9]+)-.+, push branch US1-test, it works. Append /i, e.g. ^((dev|test|release)|(ux-)?(US|DE|CHG|CTASK|INC|KB|PRB|PTASK|RITM|REQ|TASK)[0-9]+)-.+/i, push branch US1-test does not work and fails with:

remote: GitLab: Branch name does not follow the pattern '^((dev|test|release)|(ux-)?(US|DE|CHG|CTASK|INC|KB|PRB|PTASK|RITM|REQ|TASK)[0-9]+)-.+/i'

Example Project

none yet, if needed will create

What is the current bug behavior?

Push rule doesn't work at all with /i flag.

What is the expected correct behavior?

US1-test and us1-test passes push rules with /i flag.

Relevant logs and/or screenshots

Output of checks

Results of GitLab environment info

No admin access

Results of GitLab application Check

No admin access

Possible fixes

Edited Jul 06, 2018 by Elijah Lynn
Assignee Loading
Time tracking Loading