mirror of
https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git
synced 2024-11-23 22:58:43 +00:00
chore: allow Bxxxx problems
This commit is contained in:
parent
91035c482a
commit
aa110ef8aa
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
function validateLuoguProblemId($str) {
|
||||
return preg_match('/^P[1-9][0-9]{3,5}$/', $str);
|
||||
return preg_match('/^(P|B)[1-9][0-9]{3,5}$/', $str);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user