mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-22 13:41:52 +00:00
fix(problem/remote): difficulty
This commit is contained in:
parent
fbed1162c0
commit
4523109085
@ -58,7 +58,7 @@ class UOJRemoteProblem {
|
||||
foreach ($dom->querySelectorAll('.tag-box') as &$elem) {
|
||||
$matches = [];
|
||||
|
||||
if (preg_match('/\*([0-9]{3,4})/', trim($elem->innerHTML), $matches) !== false) {
|
||||
if (preg_match('/\*([0-9]{3,4})/', trim($elem->innerHTML), $matches)) {
|
||||
$difficulty = intval($matches[1]);
|
||||
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user