Skip to content

Commit a937493

Browse files
authored
Merge pull request #159 from xsnippet/fix-snippet-route
Fix Snippet route
2 parents e37d7d4 + 04dd2f5 commit a937493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const App = () => {
4949
<main className="main">
5050
<Route exact path="/" component={NewSnippet} />
5151
<Route exact path="/recent" component={RecentSnippets} />
52-
<Route exact path="/:id(\d+)" component={Snippet} />
52+
<Route exact path="/:id([a-zA-Z0-9]+)" component={Snippet} />
5353
<Route exact path="/about" component={About} />
5454
<Route exact path="/sign-in" component={SignIn} />
5555
</main>

0 commit comments

Comments
 (0)