Skip to content

Commit

Permalink
improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Aug 19, 2018
1 parent 691f24c commit a230bed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/compile-route.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ const getUrlMatcher = route => {
}

// if none of the special syntaxes apply, it's just a simple string match
// but we have to be careful to normalize the url we check and the name
// of the route to allow for e.g. http://it.at.there being indistinguishable
// from http://it.at.there/ once we start generating Request/Url objects
const expectedUrl = normalizeUrl(matcher);
if (route.__unnamed) {
route.name = expectedUrl;
Expand Down

0 comments on commit a230bed

Please sign in to comment.