3 ms·
Handy for a one-off, but it uses regexps which are difficult to get right when you have nested strings (as can be done with template strings).
by explorigin 6y ago
Handy for a one-off, but it uses regexps which are difficult to get right when you have nested strings (as can be done with template strings).
- atum47 6y agoI guess you're right. I had algorithms in mind when I wrote this code, not templates or JSX stuff.