Skip to content

Commit

Permalink
Fixing _needs_join return
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje committed Sep 10, 2024
1 parent d37202e commit db07392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/components/preprocessors/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def _needs_join(
return True

# next sentence starts with a bracket or we return False
return re.search(r"^\s*[\(\[]", text[next_start:next_end])
return re.search(r"^\s*[\(\[]", text[next_start:next_end]) is not None

def _read_abbreviations(self, language: Language) -> List[str]:
"""
Expand Down

0 comments on commit db07392

Please sign in to comment.