Skip to content
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

Open
2 of 5 tasks
cjxe opened this issue Nov 4, 2024 · 1 comment
Open
2 of 5 tasks

Invalid regular expression: (?i): Invalid group #817

cjxe opened this issue Nov 4, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@cjxe
Copy link

cjxe commented Nov 4, 2024

Description:

When I type (?i) into a regex rule, then the runner throws an error.

Action version:

Latest version.

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:

Add the following rule to labeler.yml:

SOMELABEL:
  - head-branch: '^(?i)(a).*'

Expected behavior:

The error shouldn't be thrown.

Actual behavior:

GitHub Actions runner on ubuntu-latest throw the following error:

The configuration file (path: .github/labeler.yml) was not found locally, fetching via the api
Error: SyntaxError: Invalid regular expression: /^(?i)(a).*/: Invalid group
Error: Invalid regular expression: /^(?i)(a).*/: Invalid group
@cjxe cjxe added bug Something isn't working needs triage labels Nov 4, 2024
@mahabaleshwars
Copy link

Hello @cjxe,
Thank you for creating this issue. We will investigate it and provide feedback as soon as we have some updates.

@suyashgaonkar suyashgaonkar self-assigned this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants