Conversation
|
Hi @nisbet-hubbard, Thank you for your contribution and for your attention to detail. I still find the existing phrasing — “regular expression match” and “matching variant chosen” — quite clear and consistent with our current terminology. Additionally, we haven’t previously used the term “testing” in this context, while phrases like “strings evaluated/matched” and “regular expressions matched” are more established. This is just my perspective, and other community members may have different thoughts on this. |
|
Thanks! I’ve updated the patch to address these concerns. What bothers me in the original version is that wording like ‘If the source value matches more than one of the specified variants’ doesn’t make it clear (to people who are not already familiar with the codebase) whether all the variants are actually searched or just the variants up to the first match. So, I’m borrowing a phrase from the docs on the location directive to clarify this point. |
24fd4d3 to
d05c0e1
Compare
map testingmap matching.
|
Rebased as per guidelines. |
|
In my personal reading of the current wording: Further, regarding the patch, I don't like that "the first matching" is used twice, it worsens the wording quality. |
|
Absolutely, and it's because you already know that's what it means. What I was trying to get across is we understand what the current wording implies on personal reading because we already know what it implies. And we need to stand in the shoes of someone who doesn't. In any case, here's an alternative edit:
Would this satisfy everyone? |
The search is performed up to the first match. The search priority is always applied. While here, simplified description. Unified wording based on text review from f09e543.
|
Hello, I've looked once again at the current state. Regardless, the existing wording looks like it has a logic flaw. Since it's hard to explain in details, and to reduces the number of review round-trips, |
This PR improves the wording regarding
maptesting to reflect the performance benefits of using exact match over regex.https://web.archive.org/web/20240908025132/https://forum.nginx.org/read.php?2,214693,214694