mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-06 21:57:14 +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 !== '/') {
|
if (baseUrl !== '/') {
|
||||||
// Not super robust, but should be good enough for our use case
|
// Not super robust, but should be good enough for our use case
|
||||||
// See https://github.com/facebook/docusaurus/pull/10090
|
// 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) {
|
if (!looksLikeAsset) {
|
||||||
const normalizedUrl = applyTrailingSlash(req.url, {
|
const normalizedUrl = applyTrailingSlash(req.url, {
|
||||||
trailingSlash,
|
trailingSlash,
|
||||||
|
|
Loading…
Add table
Reference in a new issue