/** 清除连续空格 */ export function clearManySpaces(str: string): string { return str.replace(/\s{2,}/g, " ") }