From 3a4344d1e26e679b0dc9558d15752e53ce86f8ac Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 23 Jun 2020 20:27:02 -0700 Subject: block some meta strings --- chocula/util.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3