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}");`,