We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9881a7 commit 4e00761Copy full SHA for 4e00761
1 file changed
server/utils/readme-loaders.ts
@@ -60,9 +60,11 @@ export async function fetchReadmeFromJsdelivr(
60
}),
61
)
62
63
- const matchedReadme = responses.find((response): response is Response => response !== null)
64
- if (matchedReadme) {
65
- return await matchedReadme.text()
+ for (const response of responses) {
+ const text = await response?.text()
+ if (text?.trim()) {
66
+ return text
67
+ }
68
}
69
70
0 commit comments