We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c466b1 commit 98ab888Copy full SHA for 98ab888
Readme.md
@@ -41,7 +41,7 @@ const { pathToRegexp, match, parse, compile } = require("path-to-regexp");
41
```javascript
42
const keys = [];
43
const regexp = pathToRegexp("/foo/:bar", keys);
44
-// regexp = /^\/foo\/([^\/]+?)\/?$/i
+// regexp = /^\/foo(?:\/([^\/#\?]+?))[\/#\?]?$/i
45
// keys = [{ name: 'bar', prefix: '/', suffix: '', pattern: '[^\\/#\\?]+?', modifier: '' }]
46
```
47
0 commit comments