+1, please create a Jira ticket - even though it's a small new feature it's good to mention it in the release notes. Happy New Year from down under.
On Sun, Dec 31, 2017 at 10:24 PM, Daniel.Sun <sun...@apache.org> wrote: > Hi all, > > I am going to add startsWith(String...) and endsWith(String...) for > java.lang.String(i.e. if and only if the string starts with/ends with any > specified strings, return true), because many senarios require them. For > example: > > The following code > > https://github.com/apache/groovy/blob/master/gradle/ > assemble.gradle#L352-L355 > can be simplified as > it.file.name.startsWith('asm-', 'antlr-', 'antlr4-') > > The similar senario appears at: > https://github.com/apache/groovy/blob/master/gradle/ > assemble.gradle#L366-L369 > > Any thoughts? > > Cheers, > Daniel.Sun > > > > -- > Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html >