Skip to content

Commit

Permalink
fix(paths): fix path constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
crhntr committed Feb 25, 2025
1 parent 98dae71 commit a78a861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/muxt/name.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func routePathFunc(imports *source.Imports, t *Template) (*ast.FuncDecl, error)
prev := segmentExpressions[len(segmentExpressions)-1]
if prevBasic, ok := prev.(*ast.BasicLit); ok {
prevVal, _ := strconv.Unquote(prevBasic.Value)
prevBasic.Value = strconv.Quote(prevVal + segment)
prevBasic.Value = strconv.Quote(prevVal + "/" + segment)
continue
}
}
Expand Down

0 comments on commit a78a861

Please sign in to comment.