mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix string escaping
This commit is contained in:
parent
d683943eb3
commit
f22ba144c7
@ -38,7 +38,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.Replace("\"", "\\\"")}\"" : s,
|
||||
DateTimeOffset dateTime => dateTime.ToUnixTimeSeconds(),
|
||||
DateOnly date => date.ToUnixTimeSeconds(),
|
||||
_ => value
|
||||
|
Loading…
x
Reference in New Issue
Block a user