mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 11:07:54 +08:00
chore: unwrap error detail in test route
This commit is contained in:
@@ -31,7 +31,10 @@ export default async function test({ github, context, core }, baseUrl, routes, n
|
||||
detail += '\n\n';
|
||||
detail += errInfoList
|
||||
.slice(0, 5)
|
||||
.map((e) => (e.length > 1000 ? e.slice(0, 1000) + '...' : e).trim())
|
||||
.map((e) => {
|
||||
e = e.replaceAll(/<code class="[^"]+">|<\/code>/g, '').trim();
|
||||
return e.length > 1000 ? e.slice(0, 1000) + '...' : e;
|
||||
})
|
||||
.join('\n');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user