mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 10:49:50 +00:00
also use dash for splitting
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@751 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
a55a4a74d4
commit
d8d7d20c22
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ public class SncbProvider extends AbstractHafasProvider
|
|||
protected String[] splitPlaceAndName(final String name)
|
||||
{
|
||||
for (final String place : PLACES)
|
||||
if (name.startsWith(place + " "))
|
||||
if (name.startsWith(place + " ") || name.startsWith(place + "-"))
|
||||
return new String[] { place, name.substring(place.length() + 1) };
|
||||
|
||||
return super.splitPlaceAndName(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue