mirror of
				https://github.com/public-transport/db-vendo-client.git
				synced 2025-11-04 10:06:32 +02:00 
			
		
		
		
	VBB: strip "Bus " & "Tram " from line names
This commit is contained in:
		
							parent
							
								
									49186ae2d1
								
							
						
					
					
						commit
						f60bebd5ae
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -42,7 +42,8 @@ const createParseLine = (profile, operators) => {
 | 
			
		|||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		const details = parseLineName(l.name)
 | 
			
		||||
		res.name = l.name.replace(/^(bus|tram)\s+/i, '')
 | 
			
		||||
		const details = parseLineName(res.name)
 | 
			
		||||
		res.symbol = details.symbol
 | 
			
		||||
		res.nr = details.nr
 | 
			
		||||
		res.metro = details.metro
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue