Skip to content

Commit 71dbb80

Browse files
committed
fix readme detection
1 parent 36847d4 commit 71dbb80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update_licenses.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function getLicense(url) {
101101
lic += '\n```\n';
102102
}
103103
lic += res.getBody().toString();
104-
if (files[i].endsWith('README.md')) {
104+
if (files[i].match(/README/i)) {
105105
if (lic.match(/# License\s*\n/)) {
106106
lic = lic.split('# License')[1];
107107
} else {

0 commit comments

Comments
 (0)