From dd565f133177ec6fe10dc9196363b73901b161a1 Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Fri, 27 Aug 2021 20:17:27 +0300 Subject: [PATCH] Added dot as valid char 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 83bf7fa..c8f0b88 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}. ]+) în ([0-9.]+)$') STOPPING_TIME_REGEX = re.compile(r'^(necunoscută \(stație terminus\))|(?:([0-9]+) min \((?:începând cu|până la) ([0-9]{1,2}:[0-9]{2})\))$')