Skip to content

Commit

Permalink
Update example RegExp (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
topeomot2 committed Jun 14, 2020
1 parent 0c466b1 commit 98ab888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Expand Up @@ -41,7 +41,7 @@ const { pathToRegexp, match, parse, compile } = require("path-to-regexp");
```javascript
const keys = [];
const regexp = pathToRegexp("/foo/:bar", keys);
// regexp = /^\/foo\/([^\/]+?)\/?$/i
// regexp = /^\/foo(?:\/([^\/#\?]+?))[\/#\?]?$/i
// keys = [{ name: 'bar', prefix: '/', suffix: '', pattern: '[^\\/#\\?]+?', modifier: '' }]
```

Expand Down

0 comments on commit 98ab888

Please sign in to comment.