Station Marne-la-Vallée - Chessy can't be found when searching for the exact name.
Reason: the " - " gets replaced by some weird "[- ]" sequency. This only happens to $query, and not to $testStationName. When applying this to $testStationName, everything breaks
Fix: use a regex to replace every combination of dashes and spaces with a space, both on $query and $testStationName.
Station Marne-la-Vallée - Chessy can't be found when searching for the exact name.
Reason: the " - " gets replaced by some weird "[- ]" sequency. This only happens to $query, and not to $testStationName. When applying this to $testStationName, everything breaks
Fix: use a regex to replace every combination of dashes and spaces with a space, both on $query and $testStationName.