Regular expressions do not seem to work
Issue #2
new
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)
-
reporter -
repo owner Thanks Balazs, I'll put out an updated version that fixes the config text to use "wildcards". Apologies for the confusion.
- Log in to comment
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.