Skip to content

Commit 33997ac

Browse files
Update Routing.md
1 parent 07d351f commit 33997ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Make sure to escape all regular expression special characters, otherwise you mig
141141

142142
Named regular expression:
143143
```js
144-
app.get("/user/:id:(\\d+)", function (req, res) {
144+
app.get("/user/:id(\\d+)", function (req, res) {
145145
res.end(req.params.id);
146146
});
147147
```

0 commit comments

Comments
 (0)