mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-22 17:04:31 +02:00
7 lines
109 B
Python
7 lines
109 B
Python
import re
|
|
|
|
COLLAPSE_RE = re.compile(r"\s+")
|
|
|
|
|
|
def collapse_whitespace(s):
|
|
return COLLAPSE_RE.sub(" ", s)
|