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
From the docs, I naively assumed that any Lua pattern could be used, or at least the built-in ones and maybe a little more, leading to an attempt to use %u:
@leafo I'd like to ask, since I don't understand LPeg, if you could clarify exactly what patterns can be used in parameter character classes. I'd be happy to submit a pull request with updated docs if only I understood it myself.
%a%d%w (as defined by Lua) and then any range specified with a dash like A-Z
Optionally a ^ can be included in front to negate the set. Additional character classes can be listed and they will be unioned (for example, A-Za-z is valid)
From the docs, I naively assumed that any Lua pattern could be used, or at least the built-in ones and maybe a little more, leading to an attempt to use
%u
:[tracks: "/tracks(/:order[%u])(/:asc_desc)(/:page[%d])"]: =>
Looking at the code, it is clear why this doesn't work, but I would ask for some clarification in the docs about what exactly works or doesn't.
The text was updated successfully, but these errors were encountered: