6 lines
98 B
Python
6 lines
98 B
Python
|
|
import re
|
||
|
|
|
||
|
|
|
||
|
|
def remove_whitespace(string: str) -> str:
|
||
|
|
return re.sub("[ \n\t]+", " ", string)
|