Move GetCustomTagDelimiters to Extension

This commit is contained in:
gnattu
2024-09-24 12:36:05 +08:00
parent 00ca4abbe1
commit 0ffddacf11
3 changed files with 33 additions and 14 deletions

View File

@@ -149,19 +149,5 @@ namespace MediaBrowser.Model.Configuration
return null;
}
public char[] GetCustomTagDelimiters()
{
return CustomTagDelimiters.Select<string, char?>(x =>
{
var isChar = char.TryParse(x, out var c);
if (isChar)
{
return c;
}
return null;
}).Where(x => x is not null).Select(x => x!.Value).ToArray();
}
}
}