nginx: Made some patterns greedy#3230
Conversation
|
This makes sense to me; do you think it's overkill to add tests for these small changes? |
Yes. The I'm actually quite sure that it's not possible to find a code snippet that behaves differently under the new grammar in this PR. For the behavior described in #2680 to occur, we need a non-greedy pattern followed by at least 2 greedy patterns that can cause rematching amongst each other. The old nginx grammar simply doesn't fulfill those conditions. The reason why I added Actually, I should probably make an issue for this practice and the test that will eventually enforce it. |
No description provided.