Since non-exact routes only use the caret anchor, partial string matches are unaccounted for. One example is the path /abc, for which a URL of /abcdef matches when it shouldn't.
local test = Path.new("/abc")
local match = test:match("/abcdef")
expect(match).to.equal(nil) -- Fails, got table
Since non-exact routes only use the caret anchor, partial string matches are unaccounted for. One example is the path
/abc
, for which a URL of/abcdef
matches when it shouldn't.