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>
9 lines
317 B
Text
9 lines
317 B
Text
'use strict';
|
|
|
|
const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
|
|
const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;
|
|
|
|
const escapeUriPath = (uri) => uri.split("/").map(escapeUri).join("/");
|
|
|
|
exports.escapeUri = escapeUri;
|
|
exports.escapeUriPath = escapeUriPath;
|