Page 1 of 1

recase() - titlecase_exceptions_lower
with empty = broken

Posted: 15 Jul 2025 22:29
by highend
From the rename examples:

Code: Select all

text recase("the caMel BITES the horse.", "t", , "");           //The Camel Bites The Horse. (no exceptions)
Output here:

Code: Select all

The Camel Bites the Horse.
So the empty title case exception doesn't work here.

Don't know since when this happens, this is the latest x32 beta here.

Re: recase() - titlecase_exceptions_lower
with empty = broken

Posted: 15 Jul 2025 23:54
by jupe
I think it's since _keep was added, eg this should provide expected results:

text recase("the caMel BITES the horse.", "t", , "", "");

Re: recase() - titlecase_exceptions_lower
with empty = broken

Posted: 16 Jul 2025 00:23
by highend
Thanks jupe, you're right.

@Don
The help file should be updated for that entry :)

Re: recase() - titlecase_exceptions_lower
with empty = broken

Posted: 16 Jul 2025 08:08
by admin
Well, that's a bug. Adding , "" for titlecase_exceptions_keep shouldn't be necessary to suppress titlecase_exceptions_lower.