licenseGuess(): Add more robust checks for MIT-style licenses
The MIT license is also known as the Expat or X11 license; the optional parentheses accomodate forms such as "MIT (Expat) license". This also adds a text match in case the name is not explicitly stated.
This commit is contained in:
parent
c32a93b99d
commit
c4d4aad3ec
|
@ -2874,7 +2874,7 @@ function guessLicense(text) {
|
|||
'LGPLv2.1': 'gnu lesser general public license,? version 2\\.1',
|
||||
'LGPLv3': 'gnu lesser general public license,? version 3',
|
||||
'LGPL': 'gnu (library|lesser) general public license',
|
||||
'MIT': 'mit license',
|
||||
'MIT': '\\(?(mit|expat|x11)\\)? license|permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files',
|
||||
'MPL 1.1': 'mozilla public license,? (\\(MPL\\) )?(version |v|v\\.)?1\\.1',
|
||||
'MPL 2': 'mozilla public license,? (\\(MPL\\) )?(version |v|v\\.)?2',
|
||||
'MPL': 'mozilla public license',
|
||||
|
|
Loading…
Reference in New Issue
Block a user