Title Filter Inproper Casing of Words With Apostrophe in Second Position
|Reported by:||jenkinsbr2||Owned by:||jenkinsbr2|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I discovered a very minor edge case when using the title filter on words that have an apostrophe in the second position.
Ex: I'm, I'll, I'd, etc.
The current wrapper for Python's .title uses a regex that matches [a-z]'[A-Z] which will result in something such as I'Ll not being corrected.
I propose simply using a non-capturing look behind such as (?<=[a-zA-Z])'[A-Z]. While a solution with Unicode support would be nicer, as far as I can tell it's not really feasible with Python's current re implementation. I've made this change and written an additional test that covers this edge case that I can submit as a pull request if there's no side effects I've overlooked.