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
{{ message }}
This repository was archived by the owner on Dec 11, 2020. It is now read-only.
Or, more globally, it doesn't match zero-elements.
I changed match_one_path and added the if block within the for:
local function match_one_path(node, path, f)
for token in path:gmatch("[^/.]+") do
node[token] = node[token] or {}
if token == '*' and not node['LEAF'] then
node['LEAF'] = f
end
node = node[token]
end
node["LEAF"] = f
end
All tests pass, but I'm loath to open a PR as this would probably break someone's expectations.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I noticed that a route of:
r:match('GET', '*', ...)
doesn't match
'GET', '/'
Or, more globally, it doesn't match zero-elements.
I changed
match_one_path
and added theif
block within thefor
:All tests pass, but I'm loath to open a PR as this would probably break someone's expectations.
The text was updated successfully, but these errors were encountered: