Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regex for capturing category and product IDs
The issue was that for product categories with the second or third word starting with the letter "c," the regex used would capture the wrong part of the string, leading to incorrect ID extraction. For example, for the category "Wireless charger," the slug "wireless-charger-c12345678" would result in "harger-c12345678" as the ID instead of "12345678." The same issue occurred for products. This commit fixes the regex to correctly capture the IDs.
- Loading branch information