diff --git a/lib/groovy.jar b/lib/groovy.jar index 0bb55dde..4efe09ae 100644 Binary files a/lib/groovy.jar and b/lib/groovy.jar differ diff --git a/source/net/sourceforge/filebot/format/ExpressionFormat.lib.groovy b/source/net/sourceforge/filebot/format/ExpressionFormat.lib.groovy index 833c637b..5b093897 100644 --- a/source/net/sourceforge/filebot/format/ExpressionFormat.lib.groovy +++ b/source/net/sourceforge/filebot/format/ExpressionFormat.lib.groovy @@ -5,6 +5,7 @@ import java.util.regex.Pattern // simplified switch/case pattern matching Object.metaClass.match = { Map cases -> def val = delegate; cases.findResult { switch(val) { case it.key: return it.value} } } +def x(c) { try { c.call() } catch (Throwable e) { null } } /**