I think this is clever, but not very straight-forward. I think using regex's or template strings are a better option.
A more declarative and readable solution would be to use template strings
Loading collection data...
I think this is clever, but not very straight-forward. I think using regex's or template strings are a better option.
A more declarative and readable solution would be to use template strings