diff options
| author | sushilicious <40350682+sushilicious@users.noreply.github.com> | 2021-08-05 13:09:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-05 13:09:42 -0700 |
| commit | 6bc7d78f6fbef9e47731a4991ca72d3ba4c23bce (patch) | |
| tree | d5e581def75b35c8aa7af8542b12d7d2a721db6a /Emby.Naming | |
| parent | b2a10609af703b1c513570d6c397ff22e0214bb0 (diff) | |
Update Emby.Naming/Video/CleanStringParser.cs
Cleaned up code a bit
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Diffstat (limited to 'Emby.Naming')
| -rw-r--r-- | Emby.Naming/Video/CleanStringParser.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Naming/Video/CleanStringParser.cs b/Emby.Naming/Video/CleanStringParser.cs index 63a595357..99cb289a2 100644 --- a/Emby.Naming/Video/CleanStringParser.cs +++ b/Emby.Naming/Video/CleanStringParser.cs @@ -37,7 +37,7 @@ namespace Emby.Naming.Video } newName = cleaned ? name.AsSpan() : ReadOnlySpan<char>.Empty; - return newName != ReadOnlySpan<char>.Empty; + return cleaned; } private static bool TryClean(string name, Regex expression, out ReadOnlySpan<char> newName) |
