Skip to content

Commit

Permalink
Add note to README on path matching
Browse files Browse the repository at this point in the history
Closes #91.
  • Loading branch information
blakeembrey committed Oct 3, 2016
1 parent 44c69d5 commit 675bc5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ var re = pathToRegexp('/foo/:bar', keys)
// keys = [{ name: 'bar', prefix: '/', delimiter: '/', optional: false, repeat: false, pattern: '[^\\/]+?' }]
```

**Please note:** The `RegExp` returned by `path-to-regexp` is intended for use with pathnames or hostnames. It can not handle the query strings or fragments of a URL.

### Parameters

The path string can be used to define parameters and populate the keys.
Expand Down

0 comments on commit 675bc5b

Please sign in to comment.