Add more robust check for Mozilla Public License in license guessing

This commit is contained in:
someguy126 2014-12-07 20:47:57 -08:00 committed by Thaddee Tyl
parent fecd6e867b
commit 3b84814c3a

View File

@ -2875,8 +2875,8 @@ function guessLicense(text) {
'LGPLv3': 'gnu lesser general public license,? version 3',
'LGPL': 'gnu (library|lesser) general public license',
'MIT': 'mit license',
'MPL 1.1': 'mozilla public license,? (version |v|v\\.)?1\\.1',
'MPL 2': 'mozilla public license,? (version |v|v\\.)?2',
'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',
'CDDL': 'common development and distribution license',
'Eclipse': 'eclipse public license',