diff options
| author | Bond-009 <bond.009@outlook.com> | 2023-05-23 15:44:47 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2023-06-28 17:40:00 +0200 |
| commit | 83d6f21fd021c66ab3b1f6501ecdfd016fee540f (patch) | |
| tree | 97ea0cac99c9bd9efb1bb2a44377842d7bfd2c78 | |
| parent | b5f0760db8dba96e9edd67d4b9c914cf25c3d26a (diff) | |
Fix clean regex
| -rw-r--r-- | Emby.Naming/Audio/AlbumParser.cs | 2 | ||||
| -rw-r--r-- | src/Jellyfin.Drawing.Skia/StripCollageBuilder.cs | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Emby.Naming/Audio/AlbumParser.cs b/Emby.Naming/Audio/AlbumParser.cs index 73424a134..97961778f 100644 --- a/Emby.Naming/Audio/AlbumParser.cs +++ b/Emby.Naming/Audio/AlbumParser.cs @@ -23,7 +23,7 @@ namespace Emby.Naming.Audio _options = options; } - [GeneratedRegex(@"([-\.\(\)]|\s+)")] + [GeneratedRegex(@"[-\.\(\)\s]+")] private static partial Regex CleanRegex(); /// <summary> diff --git a/src/Jellyfin.Drawing.Skia/StripCollageBuilder.cs b/src/Jellyfin.Drawing.Skia/StripCollageBuilder.cs index 537fbf236..a8f80f7e2 100644 --- a/src/Jellyfin.Drawing.Skia/StripCollageBuilder.cs +++ b/src/Jellyfin.Drawing.Skia/StripCollageBuilder.cs @@ -23,6 +23,9 @@ public partial class StripCollageBuilder _skiaEncoder = skiaEncoder; } + [GeneratedRegex(@"[^\p{IsCJKUnifiedIdeographs}\p{IsCJKUnifiedIdeographsExtensionA}\p{IsKatakana}\p{IsHiragana}\p{IsHangulSyllables}\p{IsHangulJamo}]")] + private static partial Regex NonCjkPatternRegex(); + [GeneratedRegex(@"\p{IsArabic}|\p{IsArmenian}|\p{IsHebrew}|\p{IsSyriac}|\p{IsThaana}")] private static partial Regex IsRtlTextRegex(); |
