aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chocula/util.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/chocula/util.py b/chocula/util.py
index a52e1ec..ce48ab6 100644
--- a/chocula/util.py
+++ b/chocula/util.py
@@ -346,6 +346,9 @@ def clean_str(s: Optional[str]) -> Optional[str]:
# non-sorting
s.replace("\u02dc", "")
s.replace("\u0153", "")
+ # there is a very samll chance this will filter out valid strings
+ if s.lower() in ("null", "n/a", "unknown"):
+ return None
return s or None