search method comparison logic fixed

bugfix_branch
Selim Eser 2024-06-16 21:42:41 +02:00
parent 9dc98f62e7
commit 0060368e0a
1 changed files with 2 additions and 1 deletions

View File

@ -279,7 +279,8 @@ public class System {
String line; String line;
while ((line = reader.readLine()) != null && zip_set.size() < 200) { while ((line = reader.readLine()) != null && zip_set.size() < 200) {
line = line.replace("\"", ""); line = line.replace("\"", "");
if (line.split(";")[0].contains(hometown_or_zip) || line.split(";")[1].contains(hometown_or_zip)) if (line.split(";")[0].toUpperCase().startsWith(hometown_or_zip.toUpperCase())
|| line.split(";")[1].toUpperCase().startsWith(hometown_or_zip.toUpperCase()))
zip_set.add(line); zip_set.add(line);
} }
} catch (Exception e) { } catch (Exception e) {