From 6300d8ff5abbc44fc7d6de395c40a11a0f120a9a Mon Sep 17 00:00:00 2001 From: insolor <2442833+insolor@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:10:13 +0300 Subject: [PATCH] Don't ignore "/N", "/S", "/E", "/W" --- df_translation_toolkit/utils/df_ignore_string_rules.py | 4 ++++ tests/test_df_ignore_string_rules.py | 1 + 2 files changed, 5 insertions(+) diff --git a/df_translation_toolkit/utils/df_ignore_string_rules.py b/df_translation_toolkit/utils/df_ignore_string_rules.py index be468eb..2189280 100644 --- a/df_translation_toolkit/utils/df_ignore_string_rules.py +++ b/df_translation_toolkit/utils/df_ignore_string_rules.py @@ -414,6 +414,10 @@ def ignore_by_blacklisted_words(string: str) -> bool: "It", "No", "s]", + "/N", + "/S", + "/E", + "/W", } diff --git a/tests/test_df_ignore_string_rules.py b/tests/test_df_ignore_string_rules.py index 1f6eb51..6d114d8 100644 --- a/tests/test_df_ignore_string_rules.py +++ b/tests/test_df_ignore_string_rules.py @@ -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):