Titlecase fails on strings containing numbers
Bug #722441 reported by
mlissner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
titlecase |
New
|
Undecided
|
Unassigned |
Bug Description
If a string contains a number, the ALL_CAPS regex won't match it, and as a result, the string won't get cast to lowercase. The simple solution to this is to add a line as follows:
NUMS = '0|1|2|
And then change the ALL_CAPS regex to:
ALL_CAPS = re.compile(
To post a comment you must log in.