lib/licensee/project.rb in licensee-4.7.2 vs lib/licensee/project.rb in licensee-4.7.3
- old
+ new
@@ -36,13 +36,13 @@
# Scores a given file as a potential license
#
# filename - (string) the name of the file to score
#
- # Returns 1.0 if the file is definately a license file
+ # Returns 1.0 if the file is definitely a license file
# Returns 0.75 if the file is probably a license file
# Returns 0.5 if the file is likely a license file
- # Returns 0.0 if the file is definately not a license file
+ # Returns 0.0 if the file is definitely not a license file
def self.match_license_file(filename)
return 1.0 if filename =~ /\A(un)?licen[sc]e(\.[^.]+)?\z/i
return 0.75 if filename =~ /\Acopy(ing|right)(\.[^.]+)?\z/i
return 0.5 if filename =~ /licen[sc]e/i
return 0.0