Regular expressions do not seem to work

Issue #2 new
Balazs Szakmary created an issue

The description says "Ant regex is allowed." I tried using a very simple regex: [\d]+ This does not prevent me from rebasing and force-pushing a branch called 123. (Actually, I was using this: master release/ [\d]+ master and release/ work as expected, only the last part with the regex does not.)

Comments (2)

  1. Balazs Szakmary reporter

    I see now that you use AntPathMatcher to match stuff, so regular expressions are not supported at all, only Ant-style wildcards. There are two options: - Actually support regular expressions (would be very useful) - Change the text on the config screen to say "wildcards" instead of "regex"

    BTW, great plugin, I would really like to use it, but I cannot configure it now to allow/disallow all the things I need.

  2. Carolyn Van Slyck repo owner

    Thanks Balazs, I'll put out an updated version that fixes the config text to use "wildcards". Apologies for the confusion.

  3. Log in to comment