Spaces:
Running
Running
asigalov61
commited on
Upload TMIDIX.py
Browse files
TMIDIX.py
CHANGED
@@ -9441,7 +9441,7 @@ def clean_string(original_string,
|
|
9441 |
cstr1 = cstr1.title()
|
9442 |
|
9443 |
if remove_duplicate_spaces:
|
9444 |
-
return re.sub(r'
|
9445 |
|
9446 |
else:
|
9447 |
return cstr1
|
|
|
9441 |
cstr1 = cstr1.title()
|
9442 |
|
9443 |
if remove_duplicate_spaces:
|
9444 |
+
return re.sub(r'[ ]+', ' ', cstr1).strip()
|
9445 |
|
9446 |
else:
|
9447 |
return cstr1
|