allow things containing wendlingen instead of requiring starts_with
same goes for "ulm" (requires containing " ulm"), "plochingen" and "stuttgart"
This commit is contained in:
parent
d9edffac58
commit
3550ab1fc4
@ -95,11 +95,11 @@ async fn index(
|
||||
if let Some(destination) = departure.destination.as_ref() {
|
||||
if let Some(name) = &destination.name {
|
||||
let name = name.to_lowercase();
|
||||
if name.starts_with("ulm") {
|
||||
if name.starts_with("ulm") || name.contains(" ulm") {
|
||||
Some(true)
|
||||
} else if name.starts_with("wendlingen")
|
||||
|| name.starts_with("plochingen")
|
||||
|| name.starts_with("stuttgart")
|
||||
} else if name.contains("wendlingen")
|
||||
|| name.contains("plochingen")
|
||||
|| name.contains("stuttgart")
|
||||
{
|
||||
Some(false)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user