From 596907822b395f79da90738e43fcc0d5f6d9a313 Mon Sep 17 00:00:00 2001 From: xrotwang Date: Mon, 18 Jul 2016 13:02:59 +0200 Subject: [PATCH] exclude missing entries marked by dash --- ids/scripts/initializedb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ids/scripts/initializedb.py b/ids/scripts/initializedb.py index c2a1eff..1c777a6 100644 --- a/ids/scripts/initializedb.py +++ b/ids/scripts/initializedb.py @@ -43,7 +43,7 @@ def get_string(s): def split_counterparts(c): for word in re.split('\s*(?:,|;)\s*', c): word = word.strip() - if word: + if word and word not in ['—', '––']: yield word