mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 16:29:51 +00:00
separate parsing lines with type from lines without
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@903 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
a70b7a6fe5
commit
e599481525
16 changed files with 18 additions and 80 deletions
|
@ -1835,9 +1835,9 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
|
||||
private static final Pattern P_LINE_BUS_SPECIAL = Pattern.compile("Bus([A-Z]/[\\dA-Z]+)");
|
||||
|
||||
protected Line normalizeLine(final String line)
|
||||
protected Line parseLineWithoutType(final String line)
|
||||
{
|
||||
if (line == null || line.length() == 0 || line.equals("#"))
|
||||
if (line == null || line.length() == 0)
|
||||
return null;
|
||||
|
||||
final Matcher mBusSpecial = P_LINE_BUS_SPECIAL.matcher(line);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue