asigalov61 commited on
Commit
034fb74
·
verified ·
1 Parent(s): ffea11b

Upload TMIDIX.py

Browse files
Files changed (1) hide show
  1. TMIDIX.py +1 -1
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'\s+', ' ', cstr1).strip()
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