From 9cd68b4734600b8e53cacd9e92fb8f8a76120106 Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Fri, 27 Aug 2021 22:52:20 +0300 Subject: [PATCH] Allowed digits in station name --- scraper/scrape_station.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper/scrape_station.py b/scraper/scrape_station.py index fc9cc93..335644f 100644 --- a/scraper/scrape_station.py +++ b/scraper/scrape_station.py @@ -12,7 +12,7 @@ from .utils import * RO_LETTERS = r'A-Za-zăâîșțĂÂÎȚȘ' -STATION_INFO_REGEX = re.compile(rf'^([{RO_LETTERS}. ]+) în ([0-9.]+)$') +STATION_INFO_REGEX = re.compile(rf'^([{RO_LETTERS}.0-9 ]+) în ([0-9.]+)$') STOPPING_TIME_REGEX = re.compile(r'^(necunoscută \(stație terminus\))|(?:([0-9]+) (min|sec) \((?:începând cu|până la) ([0-9]{1,2}:[0-9]{2})\))$')