Skip to content
Snippets Groups Projects
Commit f8dfe448 authored by Loraine Gueguen's avatar Loraine Gueguen
Browse files

fix strip() in clean_string()

parent 80492112
No related branches found
No related tags found
1 merge request!18Release v2.1.0
This commit is part of merge request !18. Comments created here will be created in the context of that merge request.
......@@ -12,14 +12,14 @@ from _datetime import datetime
def clean_string(string):
if not string is None and string != "":
cleaned_string = string \
.strip() \
.replace(" ", "_") \
.replace("-", "_") \
.replace(".", "_") \
.replace("#", "_") \
.replace("(", "") \
.replace(")", "") \
.replace("'", "")\
.strip()
.replace("'", "")
return cleaned_string
else:
return string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment