Suche -> toLowerCase

This commit is contained in:
Georg Reisinger 2021-04-19 23:44:07 +02:00
parent d92f538129
commit f189928634

View File

@ -10,6 +10,7 @@ import java.awt.*;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Locale;
/**
* Haupt Logik des Tourplaners
@ -167,7 +168,7 @@ public class TourPlaner{
public static ArrayList<Tour> sucheTour(String tourname){
ArrayList<Tour> touren = new ArrayList<>();
getAllTours().forEach(t ->{
if(t.getName().contains(tourname)){
if(t.getName().toLowerCase(Locale.ROOT).contains(tourname.toLowerCase())){
touren.add(t);
}
});