Skip to content

Less specific full wildcard handler prioritized over more specific #40

@jirenius

Description

@jirenius

Issue

If two overlapping full wildcard handlers are registered to a Mux, GetHandler will fetch the less specific one.

Example

m := res.NewMux("")
m.Handle("model.>", h1)
m.Handle(">", h2)
m.GetHandler("model.foo") // returns h2 instead of h1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions