Groovy web console

subscribe to the feed Subscribe
to this
site
Trim Version (via #groovywebconsole)
tweet this snippet Tweet
this
script

Trim Version

Published 3 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def assemblySemVer = '1.7.0.0'
def currentVersion = assemblySemVer.split('\\.')[0..2].join('.')
assert '1.7.0' == currentVersion