Skip to content

Commit

Permalink
fix: escape period (#10223)
Browse files Browse the repository at this point in the history
  • Loading branch information
d4nyll authored Jun 17, 2024
1 parent 32d5ab0 commit 71ba685
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-zA-Z\d]{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 71ba685

Please sign in to comment.