https://bz.apache.org/bugzilla/show_bug.cgi?id=64924
Felix Schumacher <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- OS| |All Status|NEW |NEEDINFO --- Comment #1 from Felix Schumacher <[email protected]> --- Thanks for the interesting note on the behaviour of the regex matching in Groovy. The =~ operator in Groovy returns either an instance of java.util.regex.Matcher or null. All your other examples are returning boolean values. The If Controller expects a boolean result and therefore does not work on the =~ operator (but on all the other ways you showed). You could use Groovy to coerce the Matcher into a boolean value by using __groovy(!!(vars.get("variable") =~ /[1-5]/)) I am not sure, we should do something here, as the Include Controller states, that it expects a boolean result and the Groovy documentation shows =~ returns a Matcher. If we want to change the behaviour, we would have to think about the thruthiness of things, which most likely means something different to everyone. The discussion should probably be started on the dev mailing list. -- You are receiving this mail because: You are the assignee for the bug.
