mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix warnings
This commit is contained in:
1 parent
2daa7e2034
commit
a2bbb7a0e3
6 files changed
+10
-8
No files matched your search
@@ -55,7 +55,7 @@ export default class UOJProvider implements IBasicProvider {
|
||||
this.cookie = header['set-cookie'];
|
||||
}
|
||||
let value = /_token *: *"(.+?)"/g.exec(html);
|
||||
if (value) return value?.[1];
|
||||
if (value) return value[1];
|
||||
value = /_token" value="(.+?)"/g.exec(html);
|
||||
return value?.[1];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user