Add title without umlauts as base variation

This commit is contained in:
pcjones
2024-02-19 06:20:47 +01:00
parent b2e4dbbda6
commit f804dd796f
2 changed files with 26 additions and 6 deletions

View File

@@ -132,6 +132,18 @@ namespace UmlautAdaptarr.Utilities
.Replace("ß", "ss");
}
public static string RemoveGermanUmlauts(this string text)
{
return text
.Replace("ö", "")
.Replace("ü", "")
.Replace("ä", "")
.Replace("Ö", "")
.Replace("Ü", "")
.Replace("Ä", "")
.Replace("ß", "");
}
public static string RemoveExtraWhitespaces(this string text)
{
return MultipleWhitespaceRegex().Replace(text, " ");