Skip to content

Commit 78a12aa

Browse files
author
Rob Speer
committed
Fix another non-raw \w
1 parent b514519 commit 78a12aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftfy/badness.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _make_weirdness_regex():
128128
'[ÂÃĂ][\x80-\x9f€ƒ‚„†‡ˆ‰‹Œ“•˜œŸ¡¢£¤¥¦§¨ª«¬¯°±²³µ¶·¸¹º¼½¾¿ˇ˘˝]|'
129129
# Characters we have to be a little more cautious about if they're at
130130
# the end of a word, but totally okay to fix in the middle
131-
'[ÂÃĂ][›»‘”©™]\w|'
131+
r'[ÂÃĂ][›»‘”©™]\w|'
132132
# Similar mojibake of low-numbered characters in MacRoman. Leaving out
133133
# most mathy characters because of false positives, but cautiously catching
134134
# "√±" (mojibake for "ñ") and "√∂" (mojibake for "ö") in the middle of a

0 commit comments

Comments
 (0)