mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
escape quotes for strings with spaces
This commit is contained in:
parent
084ef0d68f
commit
19871e28ba
@ -39,7 +39,7 @@ internal static class FilterExtensionMethods
|
||||
return value switch
|
||||
{
|
||||
null => null,
|
||||
string s => s.Any(char.IsWhiteSpace) ? $"\"{s}\"" : s,
|
||||
string s => s.Any(char.IsWhiteSpace) ? $"\\\"{s}\\\"" : s,
|
||||
DateTimeOffset dateTime => dateTime.ToUnixTimeSeconds(),
|
||||
DateOnly date => date.ToUnixTimeSeconds(),
|
||||
_ => value
|
||||
|
Loading…
x
Reference in New Issue
Block a user