mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 14:59:23 +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 (headerIndex !== -1 && headerIndex + 2 < lines.length) {
|
||||
const description = lines[headerIndex + 2].trim();
|
||||
return description || 'No description available';
|
||||
// If we found a header, look for the first non-empty line after it
|
||||
if (headerIndex !== -1) {
|
||||
for (let i = headerIndex + 1; i < lines.length; i++) {
|
||||
const line = lines[i].trim();
|
||||
if (line && !line.startsWith('#')) {
|
||||
return line;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 'No description available';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue