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(destination) = departure.destination.as_ref() {
|
||||||
if let Some(name) = &destination.name {
|
if let Some(name) = &destination.name {
|
||||||
let name = name.to_lowercase();
|
let name = name.to_lowercase();
|
||||||
if name.starts_with("ulm") {
|
if name.starts_with("ulm") || name.contains(" ulm") {
|
||||||
Some(true)
|
Some(true)
|
||||||
} else if name.starts_with("wendlingen")
|
} else if name.contains("wendlingen")
|
||||||
|| name.starts_with("plochingen")
|
|| name.contains("plochingen")
|
||||||
|| name.starts_with("stuttgart")
|
|| name.contains("stuttgart")
|
||||||
{
|
{
|
||||||
Some(false)
|
Some(false)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user