Rocky_Mountain_Vending/.pnpm-store/v10/files/3b/3a3c7ddc8d44dc3273d7d928528fbfacd0f8096790f5a1a67f83a5aa362d19017ff83eb21c91c5c1b352df6f8a1e9bf9adeaf43d9b15a72fa246a7a3d1871a
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

16 lines
No EOL
524 B
Text

export const matchSegment = (existingSegment, segment)=>{
// segment is either Array or string
if (typeof existingSegment === 'string') {
if (typeof segment === 'string') {
// Common case: segment is just a string
return existingSegment === segment;
}
return false;
}
if (typeof segment === 'string') {
return false;
}
return existingSegment[0] === segment[0] && existingSegment[1] === segment[1];
};
//# sourceMappingURL=match-segments.js.map