-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid regular expression: (?i): Invalid group #817
Comments
Hello @cjxe, |
Hi @cjxe , We did the initial investigation and it looks like the regex mentioned in the issue seems to be syntactically wrong, can you please help us to understand the use case of the regex or what exactly are you looking to achieve so that we could understand it better and come up with a solution. |
@suyashgaonkar - in this example, my aim was to match all the following strings:
So, I created this rule: "match the string that starts with a or A". See screenshot below: |
Hi @cjxe , Thank you for responding and providing us more details. As you have mentioned in the screenshot you have selected PCRE2 (regex flavour) to compile the mentioned regex code. |
@suyashgaonkar - I didn't know "regex flavor" was a thing. Thanks!
The links are broken |
Description:
When I type
(?i)
into a regex rule, then the runner throws an error.Action version:
Latest version.
Platform:
Runner type:
Repro steps:
Add the following rule to
labeler.yml
:Expected behavior:
The error shouldn't be thrown.
Actual behavior:
GitHub Actions runner on ubuntu-latest throw the following error:
The text was updated successfully, but these errors were encountered: