1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-11 11:14:16 +00:00

feat: Improve CJK character width calculation, enhance SQLite vacuum test robustness, and update security audit documentation for core cleaning and optimization logic.

This commit is contained in:
Tw93
2025-12-28 21:29:10 +08:00
parent 87feab7df3
commit 44685d3999
3 changed files with 13 additions and 1 deletions

View File

@@ -146,6 +146,8 @@ func coloredProgressBar(value, max int64, percent float64) string {
func runeWidth(r rune) int {
if r >= 0x4E00 && r <= 0x9FFF ||
r >= 0x3400 && r <= 0x4DBF ||
r >= 0x3040 && r <= 0x30FF ||
r >= 0x31F0 && r <= 0x31FF ||
r >= 0xAC00 && r <= 0xD7AF ||
r >= 0xFF00 && r <= 0xFFEF {
return 2