-
Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I asked claude to see what could be wrong and it came up with this change... which is working now. ● Update(src/lib/product-loader.ts) |
Beta Was this translation helpful? Give feedback.
-
|
Thanks! Fixed! |
Beta Was this translation helpful? Give feedback.


I asked claude to see what could be wrong and it came up with this change... which is working now.
● Update(src/lib/product-loader.ts)
⎿ Added 2 lines
23
24 /**
25 * Slugify a string for use as an ID
26 + * Converts " & " to "-and-" to maintain semantic meaning
27 */
28 function slugify(str: string): string {
29 return str
30 .toLowerCase()
31 + .replace(/\s+&\s+/g, '-and-') // Convert " & " to "-and-" first
32 .replace(/[^a-z0-9]+/g, '-')
33 .replace(/(^-|-$)/g, '')
34 }