Skip to content

Commit

Permalink
Merge pull request #316 from ale-ben/cuttingedge
Browse files Browse the repository at this point in the history
Fixed regex to capture chapters with decimal (1.5, ..)
  • Loading branch information
C9Glax authored Jan 10, 2025
2 parents 6aa8413 + b39dbd5 commit 3abf722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tranga/MangaConnectors/WeebCentral.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private List<Chapter> ParseChaptersFromHtml(Manga manga, HtmlDocument document)
{
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 =>
Expand Down

0 comments on commit 3abf722

Please sign in to comment.