From de49a0688697eb29959911e4cd438b7629d25ce9 Mon Sep 17 00:00:00 2001 From: sebastien Date: Thu, 16 May 2024 18:22:09 +0200 Subject: [PATCH] fix serve workaround regexp --- packages/docusaurus/src/commands/serve.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus/src/commands/serve.ts b/packages/docusaurus/src/commands/serve.ts index 9d0000bb7210..e2446abea84b 100644 --- a/packages/docusaurus/src/commands/serve.ts +++ b/packages/docusaurus/src/commands/serve.ts @@ -80,7 +80,7 @@ export async function serve( if (baseUrl !== '/') { // Not super robust, but should be good enough for our use case // See https://github.com/facebook/docusaurus/pull/10090 - const looksLikeAsset = !!req.url.match(/.[a-z]{1,4}$/); + const looksLikeAsset = !!req.url.match(/.[a-zA-Z\d]{1,4}$/); if (!looksLikeAsset) { const normalizedUrl = applyTrailingSlash(req.url, { trailingSlash,