mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 19:59: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 += '\n\n';
|
||||||
detail += errInfoList
|
detail += errInfoList
|
||||||
.slice(0, 5)
|
.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');
|
.join('\n');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user