Skip to content

Commit

Permalink
Merge pull request #65 from lijunle/patch-1
Browse files Browse the repository at this point in the history
Fix the example of path compile in README.
  • Loading branch information
blakeembrey committed Nov 1, 2015
2 parents 447fb23 + f8d4ce9 commit dc9a133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ var toPath = pathToRegexp.compile('/user/:id')

toPath({ id: 123 }) //=> "/user/123"
toPath({ id: 'café' }) //=> "/user/caf%C3%A9"
toPath({ id: '/' }) //=> "%2F"
toPath({ id: '/' }) //=> "/user/%2F"

var toPathRepeated = pathToRegexp.compile('/:segment+')

Expand Down

0 comments on commit dc9a133

Please sign in to comment.