Fix clean regex

This commit is contained in:
Bond-009 2023-05-23 15:44:47 +02:00 committed by Bond_009
parent b5f0760db8
commit 83d6f21fd0
2 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,7 @@ namespace Emby.Naming.Audio
_options = options;
}
[GeneratedRegex(@"([-\.\(\)]|\s+)")]
[GeneratedRegex(@"[-\.\(\)\s]+")]
private static partial Regex CleanRegex();
/// <summary>

View File

@ -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();