Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hrabiel committed Sep 11, 2024
1 parent 2c1cfe6 commit 939cbe7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/vercel/src/lib/redirects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ function getMatchPattern(segments: RoutePart[][]) {
.map((segment, segmentIndex) => {
return segment.length === 1 && segment[0].spread
? '(?:\\/(.*?))?'
// Omit leading slash if segment is a spread.
// This is handled using a regex in Astro core.
// To avoid complex data massaging, we handle in-place here.
: (segmentIndex === 0 ? '' : '/') +
: // Omit leading slash if segment is a spread.
// This is handled using a regex in Astro core.
// To avoid complex data massaging, we handle in-place here.
(segmentIndex === 0 ? '' : '/') +
segment
.map((part) => {
if (part)
Expand Down

0 comments on commit 939cbe7

Please sign in to comment.