mjackson / citrus

Parsing Expressions for Ruby
http://mjackson.github.io/citrus
405 stars 28 forks source link

Logic.parse() failed to correctly parse expression that contains space in array's element #62

Closed kevincui88 closed 2 years ago

kevincui88 commented 3 years ago

I'm expecting the following to return true, but it's returning false. (Citrus 3.0.2)

Logic.parse("\"with space\" in [\"with space\" \"nospace\"]").value

I did some testing on my end and found out this is only an issue when the array has an element that contains spaces as shown above.

Can we please fix this? Thanks