Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed Dec 1, 2024
1 parent 8cb5261 commit e74fa52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions df_translation_toolkit/utils/df_ignore_string_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ def ignore_dash_separated_words(string: str) -> bool:
if " " in string:
return False

dash_index = string.index("-")
if dash_index < 1:
if "-" not in string:
return False

parts = string.split("-")
Expand Down

0 comments on commit e74fa52

Please sign in to comment.