Broaden matching to include roman numerals

This commit is contained in:
Neshura 2025-02-18 22:59:16 +01:00
parent b75edb2136
commit fd6ce2a51e
Signed by: Neshura
GPG key ID: 4E2D47B1374C297D

View file

@ -822,7 +822,7 @@ func GenerateMangaChapterList(navigation FileWrapper) *list.List {
label := navChapter.FindElement("./navLabel/text").Text()
page := navChapter.FindElement("./content")
regex := "(?:Chapter|Episode) ([0-9]*)"
regex := "(?:Chapter|Episode) ([0-9IVXLCDM]*)"
match, _ := regexp.MatchString(regex, label)
if match {