DEV Community

[Comment from a deleted post]
Collapse
 
ingjorgevasquez profile image
Jorge Vasquez

Hi Hiep, I hope you're doing well. Good explanation of the pattern 👍. However, I have a concern with this implementation, related to the very specific names we can handle in the switch statement, I mean, if a customer would had used a different combination of capital letters, their search wouldn't had matched anything.
Do you know an elegant solution that allows our application to recognize different ways of writing a product names and match the desired product?