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.
1 parent e94ef0f commit 19304d6Copy full SHA for 19304d6
routes/redirect.js
@@ -14,7 +14,9 @@ module.exports = Router()
14
if (
15
req.params.hash.length < schema.Link.properties.hash.minLength ||
16
req.params.hash.length > schema.Link.properties.hash.maxLength ||
17
- !new RegExp(schema.Link.properties.hash.pattern, 'u').test(req.params)
+ !new RegExp(schema.Link.properties.hash.pattern, 'u').test(
18
+ req.params.hash
19
+ )
20
)
21
return res.sendStatus(404)
22
0 commit comments