1. Matt Chaput
  2. whoosh
  3. Issues
Issue #253 resolved

unexpected parsing behaviour

Thomas Waldmann
created an issue

{{{

one blank before/after AND

qp.parse("A AND B") And([Term(None, 'A'), Term(None, 'B')])

two blanks before AND

qp.parse("A AND B") And([Term(None, 'A'), Term(None, 'AND'), Term(None, 'B')]) }}}

Comments (3)

  1. Matt Chaput repo owner

    - Changed operator regexes to use look-ahead/-behind instead of matching whitespace. Fixes issue #253. WhitespacePlugin could "steal" all whitespace before an operator so the op pattern (which included leading WS) wouldn't match. - Moved test_not_order to a more appropriate test module.

    f16a3146af62

  2. Log in to comment