Skip to content

Commit

Permalink
#366: additional hyphen added to "Replace Hyphens w/ Space" cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
aschonfeld committed Dec 24, 2020
1 parent fd00692 commit d7d713e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dtale/column_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ def _load():
elif cleaner == "hidden_chars":
return s.str.replace(r"[^{}]+".format(printable), "")
elif cleaner == "replace_hyphen_w_space":
return s.str.replace(r"[‐᠆﹣-⁃−]+", " ")
return s.str.replace(r"[‐᠆﹣-⁃−-]+", " ")
return s


Expand Down Expand Up @@ -1107,7 +1107,7 @@ def clean_code(cleaner, cfg):
"s = s.str.replacer(r'[^{}]+'.format(printable), '')",
]
elif cleaner == "replace_hyphen_w_space":
return ("s = s.str.replacer(s.str.replace(r'[‐᠆﹣-⁃−]+', ' ')",)
return ("s = s.str.replacer(s.str.replace(r'[‐᠆﹣-⁃−-]+', ' ')",)
return []


Expand Down

0 comments on commit d7d713e

Please sign in to comment.