What's New
New check: regex_exact_match
Detects regex locations like location ~ ^/path$ that match a single literal path and can be replaced with an exact-match location (location = /path) for better performance.
NGINX processes exact-match locations first and skips the regex engine entirely, making them significantly faster.
Before:
location ~ ^/api/health$ {
return 200;
}After:
location = /api/health {
return 200;
}Includes quick-fix support for IDE integrations. Only flags case-sensitive regex (~), not case-insensitive (~*), since = is always case-sensitive.