You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When location regexes such as ~^ doesn't contain a space ie:
location ~*^/if-and-alias/
nginx accepts the configuration but the linter will show an incorrect error message:
"error Expected string when using 'location', got regular expression"
This message disappears as soon as the location is using a space.
location ~* ^/if-and-alias/
It would be nice if the linter suggested to add the space instead.
The text was updated successfully, but these errors were encountered:
snigel
changed the title
Incorrect warning message for location blocks.
Confusing warning message for location blocks.
Aug 25, 2022
When location regexes such as ~^ doesn't contain a space ie:
nginx accepts the configuration but the linter will show an incorrect error message:
"error Expected string when using 'location', got regular expression"
This message disappears as soon as the location is using a space.
It would be nice if the linter suggested to add the space instead.
The text was updated successfully, but these errors were encountered: