Skip to content

Commit

Permalink
fix: revert getPattern changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Mar 9, 2022
1 parent dd31686 commit 1cb3e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/core/routing/manifest/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function getPattern(segments: Part[][], addTrailingSlash: AstroConfig['devOption
.map((part) => {
if (part)
return part.dynamic
? `(?<${part.content}>[^/]+?)`
? '([^/]+?)'
: part.content
.normalize()
.replace(/\?/g, '%3F')
Expand Down

0 comments on commit 1cb3e16

Please sign in to comment.