core: use problem.md for export

This commit is contained in:
undefined committed 2021-09-28 23:56:57 +08:00
1 parent 69f84b4a28
commit 3e517aa840
6 files changed
+12 -17

No files matched your search

+1 -1
View File
@@ -73,7 +73,7 @@ export default class CodeforcesProvider implements IBasicProvider {
this.cookie = header['set-cookie'];
}
const $dom = new JSDOM(html);
if ($dom.window.document.body.children.length < 2 && html.length < 1000) {
if ($dom.window.document.body.children.length < 2 && html.length < 512) {
throw new Error($dom.window.document.body.textContent);
}
return $dom.window.document.querySelector('meta[name="X-Csrf-Token"]').getAttribute('content');