Skip to content

Commit

Permalink
fix(placement): fix pattern regex
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Dec 16, 2024
1 parent 4aeeddf commit 6550a8e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions client/src/placement-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,27 @@ const PLACEMENT_MAP: Record<PlacementType, { typ: string; pattern: RegExp }> = {
side: {
typ: "side",
pattern:
/\/[^/]+\/(play|docs\/|blog\/|observatory\/?|curriculum\/[^$]|search$)/i,
/^\/[^/]+\/(play|docs\/|blog\/|observatory\/?|curriculum\/[^$]|search$)/i,
},
top: {
typ: "top-banner",
pattern: /\/[^/]+\/(?!$|_homepage$).*/i,
pattern: /^\/[^/]+\/(?!$|_homepage$).*/i,
},
hpTop: {
typ: "top-banner",
pattern: /\/[^/]+\/($|_homepage$)/i,
pattern: /^\/[^/]+\/($|_homepage$)/i,
},
hpMain: {
typ: "hp-main",
pattern: /\/[^/]+\/($|_homepage$)/i,
pattern: /^\/[^/]+\/($|_homepage$)/i,
},
hpFooter: {
typ: "hp-footer",
pattern: /\/[^/]+\/($|_homepage$)/i,
pattern: /^\/[^/]+\/($|_homepage$)/i,
},
bottom: {
typ: "bottom-banner",
pattern: /\/[^/]+\/docs\//i,
pattern: /^\/[^/]+\/docs\//i,
},
};

Expand Down

0 comments on commit 6550a8e

Please sign in to comment.