Skip to content
Discussion options

You must be logged in to vote

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 }

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rcraig12
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants