Skip to content

Commit

Permalink
Don't ignore "/N", "/S", "/E", "/W"
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed Oct 9, 2024
1 parent 9ec2fe8 commit 6300d8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions df_translation_toolkit/utils/df_ignore_string_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,10 @@ def ignore_by_blacklisted_words(string: str) -> bool:
"It",
"No",
"s]",
"/N",
"/S",
"/E",
"/W",
}


Expand Down
1 change: 1 addition & 0 deletions tests/test_df_ignore_string_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
(rules.dont_ignore, "", False),
(rules.all_ignore_rules, "She", False),
(rules.all_ignore_rules, "she", False),
(rules.all_ignore_rules, "/N", False),
],
)
def test_ignore_rules(rule, string, ignore):
Expand Down

0 comments on commit 6300d8f

Please sign in to comment.