You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed an issue with Or chains after upgrading to recent versions.
Minimal example:
usingParlot.Fluent;usingstaticParlot.Fluent.Parsers;varp1=Terms.Char('-').Or(Terms.Char('–')).ElseError("Expected separator");varp2=Terms.Char('-').Or(Terms.Char('–')).Or(Terms.Char('—')).ElseError("Expected separator");varinput=" - ";varresult1=p1.Parse(input);Console.WriteLine("Parser 1 succeeded");varresult2=p2.Parse(input);// Error: Expected separator (No error when using v1.1.0 or older)Console.WriteLine("Parser 2 succeeded");
It looks like this bug has been introduced in #177.
Reverting OneOf implementation to an earlier version fixes the issue.
The text was updated successfully, but these errors were encountered:
Hello,
I've noticed an issue with
Or
chains after upgrading to recent versions.Minimal example:
It looks like this bug has been introduced in #177.
Reverting
OneOf
implementation to an earlier version fixes the issue.The text was updated successfully, but these errors were encountered: