Skip to content

Commit

Permalink
fix: WI-154 title case fix has typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Oct 3, 2024
1 parent 83f7e12 commit 10a3142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/tup-cms/src/apps/portal/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ def reverse_slugify(slug):
words_to_exclude = {'a', 'is', 'to', 'of', 'for', 'and', 'or', 'in'}
words = slug.split('-')
words_for_title = [ word if word.lower() in words_to_exclude else word.capitalize() for word in words ]
text = words_for_title.join(' ')
text = ' '.join(words_for_title)

return text

0 comments on commit 10a3142

Please sign in to comment.