diff options
author | 2021-06-28 11:23:20 +0000 | |
---|---|---|
committer | 2021-06-28 11:23:20 +0000 | |
commit | 436783d059ad70e1f7d8438d9eefcb9c5257e2d3 (patch) | |
tree | 73ab9a2b584fa6c16bae7b37c43519621415342e | |
parent | aa8605761b0758a9ca0a0963393b92c74eb39466 (diff) | |
download | astro-436783d059ad70e1f7d8438d9eefcb9c5257e2d3.tar.gz astro-436783d059ad70e1f7d8438d9eefcb9c5257e2d3.tar.zst astro-436783d059ad70e1f7d8438d9eefcb9c5257e2d3.zip |
[ci] yarn format
-rw-r--r-- | packages/astro/src/search.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/astro/src/search.ts b/packages/astro/src/search.ts index ce3a57b95..c9f4f436b 100644 --- a/packages/astro/src/search.ts +++ b/packages/astro/src/search.ts @@ -115,7 +115,7 @@ export function searchForPage(url: URL, astroConfig: AstroConfig): SearchResult function loadCollection(url: string, astroConfig: AstroConfig): { currentPage?: number; location: PageLocation } | undefined { const pages = glob('**/$*.astro', { cwd: fileURLToPath(astroConfig.pages), filesOnly: true }); for (const pageURL of pages) { - const reqURL = new RegExp('^/' + pageURL.replace(/\$([^/]+)\.astro/, '$1') + '(?:\/(.*)|\/?$)'); + const reqURL = new RegExp('^/' + pageURL.replace(/\$([^/]+)\.astro/, '$1') + '(?:/(.*)|/?$)'); const match = url.match(reqURL); if (match) { let currentPage: number | undefined; |