X-Git-Url: https://git.r.bdr.sh/rbdr/map/blobdiff_plain/98f09799b699b453e2fc057c888ead447b319b11..8a50aceaf20dd2e9c06b278c8b252ebee91b6174:/Map/Logic/MapParser/Strategies/GroupParserStrategy.swift diff --git a/Map/Logic/MapParser/Strategies/GroupParserStrategy.swift b/Map/Logic/MapParser/Strategies/GroupParserStrategy.swift index ea5e0f3..d1acec2 100644 --- a/Map/Logic/MapParser/Strategies/GroupParserStrategy.swift +++ b/Map/Logic/MapParser/Strategies/GroupParserStrategy.swift @@ -32,8 +32,10 @@ struct GroupParserStrategy: MapParserStrategy { let match = matches[0] var groupVertices: [Vertex] = [] let vertexIdString = String(line[Range(match.range(at: 2), in: line)!]) - let vertexIds = vertexIdString.split(separator: " ", omittingEmptySubsequences: true).map( - String.init) + let vertexIds = vertexIdString.split(separator: ",", omittingEmptySubsequences: true).map( + String.init).map({ vertexId in + vertexId.trimmingCharacters(in: .whitespacesAndNewlines) + }) for vertexId in vertexIds { if let vertex = vertices[vertexId] {