From ba108193ecd0d9f218830616edf9fbeec99bd6b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Thu, 14 May 2020 11:29:24 +0200 Subject: [PATCH] Fixed allowed path regex --- server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.ts b/server.ts index ab310e3..23db600 100755 --- a/server.ts +++ b/server.ts @@ -18,7 +18,7 @@ export async function processRequest( const file = params.length > 2 ? params.slice(2).join("/") : "all"; const path = `https://code.thunderk.net/typescript/${lib}/raw/${version}/${file}.ts`; - if (!path.match(/^[a-z0-9\/\.\:-_]+$/)) { + if (!path.match(/^[a-z0-9\/\.\-:_]+$/)) { return { status: 400, body: `console.error("bundler error - Invalid path ${path}");`,