aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzycat/utils.py
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-12-01 23:09:00 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-12-01 23:09:00 +0100
commit8183e792ae122ae66b66299da1948697ae296ac7 (patch)
tree53d24af28488737e639ef3f05efa55f7dc07c1d7 /fuzzycat/utils.py
parent27e6e0b07b091cd0dd3e66a01ebed846dc9e9f50 (diff)
downloadfuzzycat-8183e792ae122ae66b66299da1948697ae296ac7.tar.gz
fuzzycat-8183e792ae122ae66b66299da1948697ae296ac7.zip
add another case
Diffstat (limited to 'fuzzycat/utils.py')
-rw-r--r--fuzzycat/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzzycat/utils.py b/fuzzycat/utils.py
index 4d1325d..d6beb03 100644
--- a/fuzzycat/utils.py
+++ b/fuzzycat/utils.py
@@ -13,7 +13,7 @@ def slugify_string(s: str) -> str:
"""
Keeps ascii chars and single whitespace only.
"""
- return ''.join((c for c in s.lower() if c in printable_no_punct))
+ return ' '.join(''.join((c for c in s.lower() if c in printable_no_punct)).split())
def cut(f: int = 0, sep: str = '\t', ignore_missing_column: bool = True):