Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: Trailing slash with argument is not respected (#140)
* Fix linting errors Avoid unused loops, trailing whitespaces and hiding global vars. * Trailing Slash not respected with parameter Show the issue where when an argument is specified it's also matching without the trailing slash * Handle the trailing slash As ngx.re.split will `delete empty trailing ones` we need to double check that there is no required `/` at the end of the path. If there is a extra `/` then add it to the pat regex. Also see https://github.com/openresty/lua-resty-core/blob/50f73790b6bb1d83f52cb3b4ec7e4ab7f649ab32/lib/ngx/re.lua#L273
- Loading branch information