Skip to content

Commit 4901734

Browse files
🐛 Fix unbalanced parenthesis
Closes #47
1 parent f3d0ae4 commit 4901734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pysbd/cleaner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def search_for_connected_sentences(self, word, txt, regex, rule):
9999
if any(a in word for a in Abbreviation.ABBREVIATIONS):
100100
return txt
101101
new_word = Text(word).apply(rule)
102-
txt = re.sub(word, new_word, txt)
102+
txt = re.sub(re.escape(word), new_word, txt)
103103
return txt
104104

105105
def check_for_no_space_in_between_sentences(self):

0 commit comments

Comments
 (0)