Closed marban closed 3 years ago
Unfortunately, titlecase
now requires regex
to be installed.
There was some work on this in #75, I thought regex
was sufficiently made optional. If that's not the case, happy to take a PR that goes the rest of the way.
Same here 👍
@ppannuto re
doesn't support \p
.
Hi all,
2.1.0 has unfortunately broken a number of my packages upstream so I am keen we get this sorted ASAP.
@fireundubh has hit the nail on the head with why attempting to use 're' in place of 'regex' has causes this issue. There is good reason why 'regex' exists in the first place as it provides significantly better support for regular expressions with Unicode than 're' does.
I have spent this afternoon trying to implement a fix to the problems introduced by PR #76 on my fork. I have attempted to allow both 're' and 'regex' to be used. However, getting 're' to work without \p
is proving problematic and not the correct way approach this IMO.
I think:
titlecase>=2.0.0
is required.I'm not apportioning blame here, just trying to help us get this fixed ASAP 🙂
I just pushed v2.2 to PyPI with the combined fixes from #84. Apologies again for the breakage and thank you for the quick fixes!!
Getting something like the below right after import: