Skip to content

Commit

Permalink
fix serve workaround regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed May 16, 2024
1 parent ef627f8 commit de49a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus/src/commands/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit de49a06

Please sign in to comment.