mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 18:24:10 +02:00
improved region parsing
This commit is contained in:
parent
444482d57a
commit
2c6264ccf0
5 changed files with 3774 additions and 0 deletions
|
|
@ -180,6 +180,7 @@ impl Parser for TeamParser {
|
|||
let region = division
|
||||
.split(' ')
|
||||
.find_map(|part| Region::from_str(part).ok())
|
||||
.or_else(|| Region::from_str(division.trim_end_matches("New Teams").trim()).ok())
|
||||
.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