Merge pull request #53 from RightBrain-Networks/bugfix/npm-no-underscore
yarn does not like _ so we will cast to -
This commit is contained in:
		@ -32,10 +32,10 @@ def get_version(build=0,version_format=None,dot=False):
 | 
				
			|||||||
            next_version = bump_version(get_tag_version(), version_type, False, False)
 | 
					            next_version = bump_version(get_tag_version(), version_type, False, False)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if version_format in ('npm','docker'):
 | 
					            if version_format in ('npm','docker'):
 | 
				
			||||||
                return "{}-{}.{}".format(next_version,branch.replace('/','-'),build)
 | 
					                return "{}-{}.{}".format(next_version,re.sub(r'[/_]', '-', branch),build)
 | 
				
			||||||
            if version_format == 'maven':
 | 
					            if version_format == 'maven':
 | 
				
			||||||
                qualifier = 'SNAPSHOT' if build == 0 else build
 | 
					                qualifier = 'SNAPSHOT' if build == 0 else build
 | 
				
			||||||
                return "{}-{}-{}".format(next_version,branch.replace('/','-'),qualifier)
 | 
					                return "{}-{}-{}".format(next_version,re.sub(r'[/_]', '-', branch),qualifier)
 | 
				
			||||||
        if dot:
 | 
					        if dot:
 | 
				
			||||||
            branch = branch.replace('/','.')
 | 
					            branch = branch.replace('/','.')
 | 
				
			||||||
        return branch
 | 
					        return branch
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user