Skip to content

Commit

Permalink
Revise TitleCaseNormalizer to perform more practical
Browse files Browse the repository at this point in the history
  • Loading branch information
mononobi committed Apr 1, 2021
1 parent b3f7d1e commit 0799f9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pyrin/utilities/string/normalizer/handlers/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
string normalizer handlers case module.
"""

from titlecase import titlecase

from pyrin.utilities.string.normalizer.decorators import string_normalizer
from pyrin.utilities.string.normalizer.enumerations import NormalizerEnum
from pyrin.utilities.string.normalizer.handlers.base import StringNormalizerBase
Expand Down Expand Up @@ -90,4 +92,4 @@ def _normalize(self, value, **options):
:rtype: str
"""

return value.title()
return titlecase(value)

0 comments on commit 0799f9d

Please sign in to comment.