FlowCommunications/JSONPath

!= filter doesn't work

johncrenshaw opened this issue · 1 comments

QueryMatchFilter::MATCH_QUERY_OPERATORS is missing cases for != and !==, so even though the filter logic is present, filters using != fail with a malformed filter error

To fix, make the following change in QueryMatchFilter::MATCH_QUERY_OPERATORS

    const MATCH_QUERY_OPERATORS = '
    @(\.(?<key>\w+)|\[["\'](?<keySquare>.*?)["\']\])
    (\s*(?<operator>==|=|!==|!=|>|<)\s*(?<comparisonValue>\S.+))?
    ';

Hi johncrenshaw

Thanks for picking that up. I'd completely missed that.

This commit 0.3.2 should fix that...
4143352