lib/cicd/builder/manifest/mixlib/build.rb in manifest-builder-0.6.4 vs lib/cicd/builder/manifest/mixlib/build.rb in manifest-builder-0.6.5
- old
+ new
@@ -69,10 +69,10 @@
@vars[:return_code] = ret
end
VER_RGX = %r'^\d+\.\d+(\.?\d)*$'
MMP_RGX = %r'^(\d+\.?){2,3}$'
- EXT_RGX = %r'\.*(tar\.gz|tgz|tar.bzip2|bzip2|bz2|jar|war|[a-z]+)$'
+ EXT_RGX = %r'\.*(tar\.gz|tgz|tar.bzip2|tar.bz2|bzip2|bz2|jar|war|[a-z]+)$'
# ---------------------------------------------------------------------------------------------------------------
def getVersionBuildFromName(artifact)
version = artifact.dup
version.gsub!(EXT_RGX, '')
version.gsub!(%r'^[a-zA-Z\-._]+', '')