mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-03 12:17:20 +02:00
fix: escape period (#10223)
This commit is contained in:
parent
32d5ab08ca
commit
71ba685903
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue