Skip to content

Commit 9c771d1

Browse files
authored
Merge pull request #93 from benhiller/esc_seq
Fix invalid escape sequence warning
2 parents c1855c5 + fb0b88e commit 9c771d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

titlecase/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def titlecase(text, callback=None, small_first_last=True, preserve_blank_lines=F
167167
# too short (like "St", don't apply this)
168168
CONSONANTS = ''.join(set(string.ascii_lowercase)
169169
- {'a', 'e', 'i', 'o', 'u', 'y'})
170-
is_all_consonants = regex.search('\A[' + CONSONANTS + ']+\Z', word,
170+
is_all_consonants = regex.search(r'\A[' + CONSONANTS + r']+\Z', word,
171171
flags=regex.IGNORECASE)
172172
if is_all_consonants and len(word) > 2:
173173
tc_line.append(word.upper())

0 commit comments

Comments
 (0)