File tree Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -60,25 +60,14 @@ does not match:
60
60
/file/
61
61
/file
62
62
63
- path: /file/:name?
63
+ path: /file( /:name)
64
64
matches:
65
65
/file/foo.js
66
66
this.props.params: {name: 'foo.js'}
67
- /file/
68
- this.props.params: {}
69
- does not match:
70
67
/file
71
- /file/quux/baz.js
72
-
73
- path: /file/?:name?
74
- matches:
75
- /file/foo.js
76
- this.props.params: {name: 'foo.js'}
77
- /file/
78
- this.props.params: {}
79
- /file
80
- this.props.params: {}
68
+ this.props.params: {name: undefined}
81
69
does not match:
70
+ /file/
82
71
/file/quux/baz.js
83
72
84
73
path: /file/*
@@ -90,16 +79,16 @@ matches:
90
79
/file/quux/baz.js
91
80
this.props.params: {splat: 'quux/baz.js'}
92
81
93
- path: /foo/*/:bar/?*?
82
+ path: /foo/*/:bar(/*)
94
83
matches:
95
84
/foo/a.b.c/taco/def
96
85
this.props.params: {bar: 'taco', splat: ['a.b.c', 'def']}
97
86
/foo/a.b.c/taco
98
87
this.props.params: {bar: 'taco', splat: 'a.b.c'}
99
88
does not match:
89
+ /foo/a.b.c/taco/
100
90
/foo/a.b.c
101
91
102
92
path: *
103
93
matches everything, but you probably want `<NotFoundRoute/>`
104
94
```
105
-
You can’t perform that action at this time.
0 commit comments