1
0
mirror of https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git synced 2024-11-27 16:16:27 +00:00

chore: allow Bxxxx problems

This commit is contained in:
Baoshuo Ren 2023-03-19 21:58:54 +08:00
parent 91035c482a
commit aa110ef8aa
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -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);
}