metafiles: copy license files with hyphens
This commit is contained in:
		
							parent
							
								
									ff8d30df74
								
							
						
					
					
						commit
						c92c78d1af
					
				@ -22,7 +22,7 @@ module Metafiles
 | 
			
		||||
 | 
			
		||||
  def copy?(file)
 | 
			
		||||
    file = file.downcase
 | 
			
		||||
    return true if LICENSES.include? file.split(".").first
 | 
			
		||||
    return true if LICENSES.include? file.split(/\.|-/).first
 | 
			
		||||
 | 
			
		||||
    ext  = File.extname(file)
 | 
			
		||||
    file = File.basename(file, ext) if EXTENSIONS.include?(ext)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user