当前位置:网站首页>Regular match the phone number and replace the fourth to seventh digits of the phone number with****
Regular match the phone number and replace the fourth to seventh digits of the phone number with****
2022-06-25 13:17:00 【liminla!】
filters: {
phoneHide(value) {
const isPhone = /^1[3|4|5|6|7|8|9][0-9]{9}$/;
let phone = value?.username
if (isPhone.test(phone)) {
phone = phone.replace(/(\d{3})\d*(\d{4})/, '$1****$2');
}
return phone;
}
},
边栏推荐
- Module 5 (microblog comments)
- Fedora 35 部署DNS主从和分离解析 —— 筑梦之路
- Heavyweight live | bizdevops: the way to break the technology situation under the tide of digital transformation
- [flask tutorial] flask overview
- Back test of quantitative trading - tqzfuturerenkowavestrategy
- Component: is to switch between multiple components
- [pit avoidance means "difficult"] antd select fuzzy search
- KVM 脚本管理 —— 筑梦之路
- Configuring pytorch in win10 environment
- And console Log say goodbye
猜你喜欢
Storage related contents of data in memory
CUDA error: unspecified launch failure
剑指 Offer II 025. 链表中的两数相加
KDD 2022 | graphmae: self supervised mask map self encoder
三行代码简单修改jar包的项目代码
揭秘GaussDB(for Redis):全面对比Codis
Sword finger offer II 025 Adding two numbers in a linked list
解析数仓lazyagg查询重写优化
字符串各操作函数与内存函数详解
剑指 Offer II 028. 展平多级双向链表
随机推荐
Sword finger offer day 2 linked list (simple)
An article clearly explains MySQL's clustering / Federation / coverage index, back to table, and index push down
[pit avoidance means "difficult"] to realize editable drag and drop sorting of protable
药物设计新福音:腾讯联合中科大、浙大开发自适应图学习方法,预测分子相互作用及分子性质
AI assisted paper drawing of PPT drawing
[visio] solving the fuzzy problem of parallelogram in word
初始c语言时的一些知识
Summer Ending
. NET in China - What's New in . NET
买基金在哪里开户安全?还请赐教
剑指 Offer II 025. 链表中的两数相加
Stockage des données en mémoire
golang键盘输入语句scanln scanf代码示例
1251- client does not support authentication protocol MySQL error resolution
QT display ffmpeg decoded pictures
[AI helps scientific research] fool drawing of loss curve
Three lines of code to simply modify the project code of the jar package
RESTful和RPC
[machine learning] parameter learning and gradient descent
剑指 Offer 第 1 天栈与队列(简单)