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.