[cuttingedge] fix(weebcentral): Fixed regex to capture chapters with decimal (1.5, ..)

This commit is contained in:
Alessandro Benetton 2025-01-10 22:10:34 +01:00
parent 6aa8413c40
commit b39dbd5671
No known key found for this signature in database
GPG Key ID: ED63A304CE2C0303

View File

@ -175,7 +175,7 @@ public class Weebcentral : MangaConnector
{
var chaptersWrapper = document.DocumentNode.SelectSingleNode("/html/body");
Regex chapterRex = new(@".* (\d+)");
Regex chapterRex = new(@"(\d+(?:.\d+)*)");
Regex idRex = new(@"https:\/\/weebcentral\.com\/chapters\/(\w*)");
var ret = chaptersWrapper.Descendants("a").Select(elem =>