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

Perl-compatible regular expressions are not supported #31

Open
partibanrama opened this issue Jan 6, 2023 · 0 comments
Open

Perl-compatible regular expressions are not supported #31

partibanrama opened this issue Jan 6, 2023 · 0 comments

Comments

@partibanrama
Copy link

Description

When using the extra_protected_branch_regex it currently only supports the extended regular expressions (EREs).

New Feature: I would like an extra option to be introduced, allowing the user to decide which grep pattern to use.

Potential Configuration

with:
  ....
  extra_protected_branch_regex: ^(foo|bar)$
  regex_pattern_syntax: PCREs
  ...

The regex_pattern_syntax would be set with one of the following values: {BREs, EREs, PCREs}; defaulting to EREs.

References

I'd really like the feature to be added and am happy to submit the PR for this piece of work. Please let me know your thoughts on the above.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant