Skip to content

Commit 8fee25e

Browse files
committed
Fix regex to not math our download archive
1 parent c7e638c commit 8fee25e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/downloads-handler/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ app.get(`/${urlPrefix}/:prefix{.*}`, async (c: Context, ) => {
3131

3232
DEBUG && console.log(`Prefix: ${prefix}`);
3333

34-
if (!prefix || /\./.test(prefix)) {
34+
if (!prefix || /\.\.+/.test(prefix)) {
3535
return Response.redirect('https://lyrion.org/getting-started')
3636
}
3737

0 commit comments

Comments
 (0)