Skip to content

Perl-compatible regular expressions are not supported #31

@partibanrama

Description

@partibanrama

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions