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.
2 parents e37d7d4 + 04dd2f5 commit a937493Copy full SHA for a937493
src/components/App.jsx
@@ -49,7 +49,7 @@ const App = () => {
49
<main className="main">
50
<Route exact path="/" component={NewSnippet} />
51
<Route exact path="/recent" component={RecentSnippets} />
52
- <Route exact path="/:id(\d+)" component={Snippet} />
+ <Route exact path="/:id([a-zA-Z0-9]+)" component={Snippet} />
53
<Route exact path="/about" component={About} />
54
<Route exact path="/sign-in" component={SignIn} />
55
</main>
0 commit comments