Splitting text on a space works like Shopify
- What was broken
- Splitting text on a space kept tabs and line breaks inside the words, and double spaces gave empty items. Shopify splits on any run of whitespace.
- What I changed
- I made a single space split on any whitespace and ignore spaces at the start and end, as Shopify does.
- Why it matters
- Word counts and word lists in templates match what Shopify gives.