On 2025/10/23 06:25, Howard Chu wrote:
Adding special cases is how bloat grows over time.

"... bloat grows unmanageable"...

That said, unless conditions prohibit it, I believe in trimming spaces at either end of extracted substrings as a matter of course. My assumptions is that leading and trailing spaces are usually invisible and unintended and are frequent enough as a result to not be considered "a special case". Just my two cents.

Lucio.