libgraviton / php-rql-parser

A PHP RQL Parsing Library
15 stars 4 forks source link

String values with a space #57

Closed upnica closed 8 years ago

upnica commented 8 years ago

I get the following error:

Invalid character \" \" at position 14

when executing the following query:

(eq(field,some value with spaces))

I have got around this by amending the REGEX_VALUE const in the Lexer class to:

const REGEX_VALUE = '/(\s|\w|\-|\+|\*|\?|\:|\.|\%[0-9a-f]{2})+/Ai';