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>
12 lines
377 B
Text
12 lines
377 B
Text
export function getSelectorName(functionString) {
|
|
try {
|
|
const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
|
|
constants.delete("CONFIG");
|
|
constants.delete("CONFIG_PREFIX_SEPARATOR");
|
|
constants.delete("ENV");
|
|
return [...constants].join(", ");
|
|
}
|
|
catch (e) {
|
|
return functionString;
|
|
}
|
|
}
|