Which is more readable?
releaseVersion = version.substring(0, version.indexOf('-SNAPSHOT'))
or
releaseVersion = version[0..-10]
Which is more readable?
releaseVersion = version.substring(0, version.indexOf('-SNAPSHOT'))
or
releaseVersion = version[0..-10]