Skip to content

Commit

Permalink
fix(core): fix serve workaround regexp (#10145)
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed May 16, 2024
1 parent 562a0be commit b73ad1e
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 b73ad1e

Please sign in to comment.