Skip to content
  • Jeremy Evans's avatar
    9e73177d
    Do not reduce quantifiers if it affects which text will be matched · 9e73177d
    Jeremy Evans authored
    Quantifier reduction when using +?)* and +?)+ should not be done
    as it affects which text will be matched.
    
    This removes the need for the RQ_PQ_Q ReduceType, so remove the
    enum entry and related switch case.
    
    Test that these are the only two patterns affected by testing all
    quantifier reduction tuples for both the captured and uncaptured
    cases and making sure the matched text is the same for both.
    
    Fixes [Bug #17341]
    9e73177d
    Do not reduce quantifiers if it affects which text will be matched
    Jeremy Evans authored
    Quantifier reduction when using +?)* and +?)+ should not be done
    as it affects which text will be matched.
    
    This removes the need for the RQ_PQ_Q ReduceType, so remove the
    enum entry and related switch case.
    
    Test that these are the only two patterns affected by testing all
    quantifier reduction tuples for both the captured and uncaptured
    cases and making sure the matched text is the same for both.
    
    Fixes [Bug #17341]
Loading