This commit is contained in:
van
2026-04-09 12:52:32 +08:00
parent ffe48e0417
commit 416a7d77f5
4 changed files with 771 additions and 2 deletions

View File

@@ -134,11 +134,11 @@ export default {
}
return 'F-' + s
},
/** 地址压成一行:换行/多空格合并为单空格,去掉中文逗号 */
/** 地址压成一行:换行/多空格合并为单空格,去掉中文逗号 */
compressAddressOneLine(raw) {
if (raw == null) return ''
return String(raw)
.replace(//g, '')
.replace(/[,]/g, '')
.replace(/\s+/g, ' ')
.trim()
},