diff --git a/ui/workers/gather_encounter_locations.py b/ui/workers/gather_encounter_locations.py index c8a060d..8931d03 100644 --- a/ui/workers/gather_encounter_locations.py +++ b/ui/workers/gather_encounter_locations.py @@ -415,7 +415,7 @@ class GatherEncountersWorker(QRunnable): def extract_routes(self, s): # Find all route numbers, including those after "and" or separated by commas - route_pattern = r'Routes?\s+((?:\d+(?:,?\s+(?:and\s+)?)?)+)' + route_pattern = r'Routes?\s?((?:\d+(?:,?\s+(?:and\s+)?)?)+)' route_match = re.search(route_pattern, s, re.IGNORECASE) if route_match: