summaryrefslogtreecommitdiff
path: root/lib/prime.gemspec
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-11-23 14:40:59 -0800
committerBenoit Daloze <eregontp@gmail.com>2020-12-02 18:42:02 +0100
commit9e73177d5362c1986814f411961b712967dc5f97 (patch)
treef0ddbddc3e24423cd39128c3bdebf07d7e6608d1 /lib/prime.gemspec
parent7546be2ca0de45bcc2a72d9b4ae0cd44a1322031 (diff)
Do not reduce quantifiers if it affects which text will be matched
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]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3808
Diffstat (limited to 'lib/prime.gemspec')
0 files changed, 0 insertions, 0 deletions