recase() - titlecase_exceptions_lower
with empty = broken

Things you’d like to miss in the future...
Post Reply
highend
Posts: 14427
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

recase() - titlecase_exceptions_lower
with empty = broken

Post 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.
One of my scripts helped you out? Please donate via Paypal

jupe
Posts: 3290
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: recase() - titlecase_exceptions_lower
with empty = broken

Post by jupe »

I think it's since _keep was added, eg this should provide expected results:

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

highend
Posts: 14427
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: recase() - titlecase_exceptions_lower
with empty = broken

Post by highend »

Thanks jupe, you're right.

@Don
The help file should be updated for that entry :)
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 64233
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: recase() - titlecase_exceptions_lower
with empty = broken

Post by admin »

Well, that's a bug. Adding , "" for titlecase_exceptions_keep shouldn't be necessary to suppress titlecase_exceptions_lower.
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

admin
Site Admin
Posts: 64233
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: recase() - titlecase_exceptions_lower
with empty = broken

Post by admin »

Fixed in next beta.
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

Post Reply