validator: fix map check bug #122
@ -141,7 +141,7 @@ impl std::str::FromStr for Zone{
|
|||||||
"MapStart"=>Ok(Self::Start(ModeID::MAIN)),
|
"MapStart"=>Ok(Self::Start(ModeID::MAIN)),
|
||||||
"MapFinish"=>Ok(Self::Finish(ModeID::MAIN)),
|
"MapFinish"=>Ok(Self::Finish(ModeID::MAIN)),
|
||||||
"BonusStart"=>Ok(Self::Start(ModeID::BONUS)),
|
"BonusStart"=>Ok(Self::Start(ModeID::BONUS)),
|
||||||
"BonusFinish"=>Ok(Self::Start(ModeID::BONUS)),
|
"BonusFinish"=>Ok(Self::Finish(ModeID::BONUS)),
|
||||||
other=>{
|
other=>{
|
||||||
let bonus_start_pattern=lazy_regex::lazy_regex!(r"^Bonus(\d+)Start$|^BonusStart(\d+)$");
|
let bonus_start_pattern=lazy_regex::lazy_regex!(r"^Bonus(\d+)Start$|^BonusStart(\d+)$");
|
||||||
if let Some(captures)=bonus_start_pattern.captures(other){
|
if let Some(captures)=bonus_start_pattern.captures(other){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user