fix(titlecase): still more words
This commit is contained in:
parent
54bfe2c1b5
commit
48644e75c7
1 changed files with 4 additions and 0 deletions
|
@ -15,12 +15,16 @@ except ImportError:
|
||||||
smallwords = [
|
smallwords = [
|
||||||
"'S",
|
"'S",
|
||||||
' A ',
|
' A ',
|
||||||
|
' And ',
|
||||||
|
' As ',
|
||||||
|
' At ',
|
||||||
' For ',
|
' For ',
|
||||||
' From ',
|
' From ',
|
||||||
' In ',
|
' In ',
|
||||||
' Of ',
|
' Of ',
|
||||||
' The ',
|
' The ',
|
||||||
' To ',
|
' To ',
|
||||||
|
' With ',
|
||||||
]
|
]
|
||||||
for word in smallwords:
|
for word in smallwords:
|
||||||
s = s.replace(word, word.lower())
|
s = s.replace(word, word.lower())
|
||||||
|
|
Loading…
Reference in a new issue