Skip to content

Commit

Permalink
excluded a word
Browse files Browse the repository at this point in the history
  • Loading branch information
saltystew committed Aug 29, 2018
1 parent 1432582 commit c7d813d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion title-tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def capitalize_title(title_string):
word = word.lower()
elif not word.isupper():
if not word.endswith('s') & (word.replace('s', '')).isupper():
word = word.capitalize()
if not (word.lower()).startswith('ipv'):
word = word.capitalize()
title += str(f'{word} ')
return title

Expand Down

0 comments on commit c7d813d

Please sign in to comment.