Files

6 lines
98 B
Python
Raw Permalink Normal View History

import re
def remove_whitespace(string: str) -> str:
return re.sub("[ \n\t]+", " ", string)