Merge pull request #8517 from Rylan12/metafiles-copy-licenses-with-hyphen
metafiles: copy license files with hyphens
This commit is contained in:
commit
fa39db0192
@ -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