Fix NoSpecialCharactersExceptHyphenAndUmlautsRegex not matching any special characters
This commit is contained in:
@@ -99,7 +99,7 @@ namespace UmlautAdaptarr.Utilities
|
|||||||
{
|
{
|
||||||
if (removeUmlauts)
|
if (removeUmlauts)
|
||||||
{
|
{
|
||||||
return NoSpecialCharactersExceptHypenRegex().Replace(text, "");
|
return NoSpecialCharactersExceptHyphenRegex().Replace(text, "");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -157,9 +157,9 @@ namespace UmlautAdaptarr.Utilities
|
|||||||
}
|
}
|
||||||
|
|
||||||
[GeneratedRegex("[^a-zA-Z0-9 -]+", RegexOptions.Compiled)]
|
[GeneratedRegex("[^a-zA-Z0-9 -]+", RegexOptions.Compiled)]
|
||||||
private static partial Regex NoSpecialCharactersExceptHypenRegex();
|
private static partial Regex NoSpecialCharactersExceptHyphenRegex();
|
||||||
|
|
||||||
[GeneratedRegex("[^a-zA-Z0-9 -öäüßÖÄÜß]+", RegexOptions.Compiled)]
|
[GeneratedRegex("[^a-zA-Z0-9 öäüßÖÄÜß-]+", RegexOptions.Compiled)]
|
||||||
private static partial Regex NoSpecialCharactersExceptHyphenAndUmlautsRegex();
|
private static partial Regex NoSpecialCharactersExceptHyphenAndUmlautsRegex();
|
||||||
|
|
||||||
[GeneratedRegex(@"\s+")]
|
[GeneratedRegex(@"\s+")]
|
||||||
|
|||||||
Reference in New Issue
Block a user