Incorrect results for d'artagnan

Bug #892833 reported by David Byers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
titlecase
New
Undecided
Unassigned

Bug Description

>>> titlecase("d'artagnan")
"D'ArtAgnAn"
>>>

Should only uppercase the first A (and possibly lowercase the d).

Revision history for this message
David Byers (david-byers) wrote :

If this is left unfixed, I will (eventually) provide a patch for it.

Revision history for this message
Joseph Price (pricejosephd) wrote :

I fixed this on my branch by limiting the replace() calls on APOS_SECOND matches to 1.

I also changed a few other areas of the code, so beware if you want to keep the rest of the trunk's code.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.