新增点击复制邮箱功能

This commit is contained in:
eoao
2025-06-28 20:22:52 +08:00
parent 136c0496b8
commit 2bef5ee0f6
10 changed files with 71 additions and 44 deletions

View File

@@ -302,7 +302,7 @@ function htmlToText(email) {
function cleanSpace(text) {
return text
.replace(/[\u200B-\u200F\uFEFF\u034F\u200B-\u200F\u00A0\u3000]/g, '') // 移除零宽空格
.replace(/[\u200B-\u200F\uFEFF\u034F\u200B-\u200F\u00A0\u3000\u00AD]/g, '')// 移除零宽空格
.replace(/\s+/g, ' ') // 多空白合并成一个空格
.trim();
}