From 34552cea1cc54f9066fb7d5cbc3c565d907d0ef5 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 28 十一月 2025 16:24:16 +0800
Subject: [PATCH] fix: bug
---
src/utils/common/common.ts | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/utils/common/common.ts b/src/utils/common/common.ts
index 2a52bc0..a9d9864 100644
--- a/src/utils/common/common.ts
+++ b/src/utils/common/common.ts
@@ -146,3 +146,8 @@
}
return result;
}
+
+export const hiddenIDNumberForEnd4 = (realIDNumber: string) => {
+ if (!realIDNumber) return '';
+ return realIDNumber.replace(/^(\d+)(.{4})$/, '$1****');
+};
--
Gitblit v1.9.1