mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-04 23:39:22 +00:00
[NAK_CVR_Mods] Fixed finding description for FuckToes
This commit is contained in:
parent
d63fb02026
commit
ef6ad34a4e
1 changed files with 8 additions and 4 deletions
12
.github/scripts/update-modlist.js
vendored
12
.github/scripts/update-modlist.js
vendored
|
@ -29,10 +29,14 @@ function extractDescription(readmePath) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we found a header, try to get the third line after it
|
// If we found a header, look for the first non-empty line after it
|
||||||
if (headerIndex !== -1 && headerIndex + 2 < lines.length) {
|
if (headerIndex !== -1) {
|
||||||
const description = lines[headerIndex + 2].trim();
|
for (let i = headerIndex + 1; i < lines.length; i++) {
|
||||||
return description || 'No description available';
|
const line = lines[i].trim();
|
||||||
|
if (line && !line.startsWith('#')) {
|
||||||
|
return line;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'No description available';
|
return 'No description available';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue