Update Emby.Naming/Video/CleanStringParser.cs

Cleaned up code a bit

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
sushilicious 2021-08-05 13:09:42 -07:00 committed by GitHub
parent b2a10609af
commit 6bc7d78f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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