diff --git a/OSM_Regions/Converter.cs b/OSM_Regions/Converter.cs index 9356430..6818504 100644 --- a/OSM_Regions/Converter.cs +++ b/OSM_Regions/Converter.cs @@ -164,7 +164,7 @@ public class Converter(float regionSize, string? exportFolderPath = null, ILogge public void RemoveAllNonHighways() { - string[] wayRegionsPaths = Directory.GetFiles(Path.Join(ExportFolderPath, WaysRegionDirectory)).Where(file => !Regex.IsMatch(file, @"[0-9]+\..*")).ToArray(); + string[] wayRegionsPaths = Directory.GetFiles(Path.Join(ExportFolderPath, WaysRegionDirectory)).Where(file => Regex.IsMatch(file, @"[0-9]+")).ToArray(); int count = 0; DateTime print = DateTime.Now; DateTime start = DateTime.Now;