We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a0ed3e + 91ec622 commit cbd3898Copy full SHA for cbd3898
1 file changed
codespell.py
@@ -37,6 +37,9 @@
37
}
38
39
40
+CONTRACTIONS = ["'d", "'s", "'th"]
41
+
42
43
def splitCamelCase(word):
44
"""Split a camel case string into individual words."""
45
@@ -112,7 +115,7 @@ def spell_check_comment(
112
115
valid = False
113
116
114
117
# Check for contractions
- for contraction in ["'d", "'s", "'th"]:
118
+ for contraction in CONTRACTIONS:
119
if error_word.endswith(contraction):
120
original_error_word = error_word
121
error_word = error_word[: -len(contraction)]
0 commit comments