mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 10:14:11 +02:00
team parse fixes
This commit is contained in:
parent
8fd98b708f
commit
ddbac7dc79
16 changed files with 4505 additions and 295 deletions
|
|
@ -359,7 +359,7 @@ pub struct InvalidRegion {
|
|||
|
||||
#[derive(Serialize, Deserialize, Copy, Clone, Debug)]
|
||||
pub enum Region {
|
||||
Euro,
|
||||
Europe,
|
||||
NorthAmerica,
|
||||
SouthAmerica,
|
||||
Asia,
|
||||
|
|
@ -371,11 +371,13 @@ impl FromStr for Region {
|
|||
|
||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
match s {
|
||||
"Euro" => Ok(Region::Euro),
|
||||
"EU" => Ok(Region::Euro),
|
||||
"Euro" => Ok(Region::Europe),
|
||||
"Europe" => Ok(Region::Europe),
|
||||
"EU" => Ok(Region::Europe),
|
||||
"Asia" => Ok(Region::Asia),
|
||||
"ASIA" => Ok(Region::Asia),
|
||||
"NA" => Ok(Region::NorthAmerica),
|
||||
"North America" => Ok(Region::NorthAmerica),
|
||||
"South American" => Ok(Region::SouthAmerica),
|
||||
"SA" => Ok(Region::SouthAmerica),
|
||||
"AUS" => Ok(Region::Australia),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue