mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-31 01:35:50 +02:00
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:
parent
b2a10609af
commit
6bc7d78f6f
|
@ -37,7 +37,7 @@ namespace Emby.Naming.Video
|
||||||
}
|
}
|
||||||
|
|
||||||
newName = cleaned ? name.AsSpan() : ReadOnlySpan<char>.Empty;
|
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)
|
private static bool TryClean(string name, Regex expression, out ReadOnlySpan<char> newName)
|
||||||
|
|
Loading…
Reference in a new issue