The return value of matchAll normally should return from less specific to most specific matches (wildcard > params > static). However when checking same kind of rules, like between wildcards, we was not sorting them. Comparing by length as simplest possible workaround we might improve it later if there was more edge cases when comparing same type.
resolves #44
The return value of
matchAll
normally should return from less specific to most specific matches (wildcard > params > static). However when checking same kind of rules, like between wildcards, we was not sorting them. Comparing by length as simplest possible workaround we might improve it later if there was more edge cases when comparing same type.