From 299fa6afdaf597e6278a7c12763a7c34cc952c86 Mon Sep 17 00:00:00 2001 From: Glax Date: Wed, 7 Feb 2024 19:37:35 +0100 Subject: [PATCH] I hate Regex --- Tranga/Chapter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/Chapter.cs b/Tranga/Chapter.cs index 75fc377..4650732 100644 --- a/Tranga/Chapter.cs +++ b/Tranga/Chapter.cs @@ -91,7 +91,7 @@ public readonly struct Chapter : IComparable if (!Directory.Exists(Path.Join(downloadLocation, parentManga.folderName))) return false; FileInfo[] archives = new DirectoryInfo(Path.Join(downloadLocation, parentManga.folderName)).GetFiles(); - Regex volChRex = new(@"(?:Vol(?:ume)?\.([0-9]+)\D*)?Ch(?:apter)?\.([0-9]+[\.0-9]*)"); + Regex volChRex = new(@"(?:Vol(?:ume)?\.([0-9]+)\D*)?Ch(?:apter)?\.([0-9]+(?:\.[0-9])*)"); Chapter t = this; return archives.Select(archive => archive.Name).Any(archiveFileName =>