mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 18:24:10 +02:00
region optional
This commit is contained in:
parent
335c75cb12
commit
dc0f3e9f0f
11 changed files with 36 additions and 15 deletions
|
|
@ -181,11 +181,7 @@ impl Parser for TeamParser {
|
|||
let region = division
|
||||
.split(' ')
|
||||
.find_map(|part| Region::from_str(part).ok())
|
||||
.or_else(|| Region::from_str(&division).ok())
|
||||
.ok_or_else(|| ParseError::InvalidText {
|
||||
text: division.clone(),
|
||||
role: "team region",
|
||||
})?;
|
||||
.or_else(|| Region::from_str(&division).ok());
|
||||
|
||||
let timezone = select_text(root, &self.selector_team_timezone).map(String::from);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue