Browse Source

- Fix route identification

plan_generation
Quildra 1 year ago
parent
commit
7bcff6fc16
  1. 2
      ui/workers/gather_encounter_locations.py

2
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:

Loading…
Cancel
Save