Skip to content

Commit 5b536e4

Browse files
committed
Change file extension in example
Changing the file extension in ```js <Route path="/files/*.*"> // matches /files/hello.jpg and /files/path/to/hello.jpg ``` to `// matches /files/hello.jpg and /files/path/to/hello.html` So we can make it clear that this path takes any file extension. As opposed to the next example that only accepts `jpg`.
1 parent df44652 commit 5b536e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/basics/RouteMatching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ A route path is [a string pattern](/docs/Glossary.md#routepattern) that is used
2020
```js
2121
<Route path="/hello/:name"> // matches /hello/michael and /hello/ryan
2222
<Route path="/hello(/:name)"> // matches /hello, /hello/michael, and /hello/ryan
23-
<Route path="/files/*.*"> // matches /files/hello.jpg and /files/path/to/hello.jpg
23+
<Route path="/files/*.*"> // matches /files/hello.jpg and /files/hello.html
2424
<Route path="/**/*.jpg"> // matches /files/hello.jpg and /files/path/to/file.jpg
2525
```
2626

0 commit comments

Comments
 (0)