mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix filters with string containing quotes
This commit is contained in:
parent
78247acba7
commit
bb3e57ff2a
@ -196,8 +196,8 @@ public abstract record Filter<T> : Filter
|
||||
{
|
||||
return (
|
||||
from lq in Parse.Char('"').Or(Parse.Char('\''))
|
||||
from str in Parse.AnyChar.Where(x => x is not '"' and not '\'').Many().Text()
|
||||
from rq in Parse.Char('"').Or(Parse.Char('\''))
|
||||
from str in Parse.AnyChar.Where(x => x != lq).Many().Text()
|
||||
from rq in Parse.Char(lq)
|
||||
select str
|
||||
).Or(Parse.LetterOrDigit.Many().Text());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user