Closed roman542 closed 3 months ago
@roman542 Thanks for reporting this ! Definitely I misunderstood what std.mem.trimLeft
was doing here. I used your suggested fix (slightly modified). Let me know if you have any issues. :pray:
Works like a charm.
Definitely I misunderstood what
std.mem.trimLeft
was doing here.
Yep, me too!
In file
src/jetzig/App.zig
in theroute
function:std.mem.trimLeft
removes all values from the left up to the first value not in the provided set. It can remove more than the prefix, e.g., when the module name isapp.views.article
(becomesrticle
). Also, the stringapviews.
will have the same effect asapp.views.
.Possible solution: