From 6fa6f897aa367248da9992816933dfd0d500d834 Mon Sep 17 00:00:00 2001 From: glax Date: Thu, 25 May 2023 17:34:24 +0200 Subject: [PATCH] More legal characters --- Tranga/Chapter.cs | 2 +- Tranga/Publication.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tranga/Chapter.cs b/Tranga/Chapter.cs index ad9251b..050d5e4 100644 --- a/Tranga/Chapter.cs +++ b/Tranga/Chapter.cs @@ -16,7 +16,7 @@ public struct Chapter public string fileName { get; } public string sortNumber { get; } - private static readonly Regex LegalCharacters = new Regex(@"([A-z]*[0-9]* *\.*-*,*\]*\[*'*~*!*)*"); + private static readonly Regex LegalCharacters = new Regex(@"([A-z]*[0-9]* *\.*-*,*\]*\[*'*\'*\)*\(*~*!*)*"); public Chapter(string? name, string? volumeNumber, string? chapterNumber, string url) { this.name = name; diff --git a/Tranga/Publication.cs b/Tranga/Publication.cs index 06f0f9b..7efc24a 100644 --- a/Tranga/Publication.cs +++ b/Tranga/Publication.cs @@ -25,7 +25,7 @@ public readonly struct Publication public string publicationId { get; } public string internalId { get; } - private static readonly Regex LegalCharacters = new Regex(@"([A-z]*[0-9]* *\.*-*,*\]*\[*'*~*!*)*"); + private static readonly Regex LegalCharacters = new Regex(@"([A-z]*[0-9]* *\.*-*,*\]*\[*'*\'*\)*\(*~*!*)*"); public Publication(string sortName, string? author, string? description, Dictionary altTitles, string[] tags, string? posterUrl, string? coverFileNameInCache, Dictionary? links, int? year, string? originalLanguage, string status, string publicationId) {