当前位置:网站首页>Regular full match: the password consists of more than 8 digits, upper and lower case letters, and special characters
Regular full match: the password consists of more than 8 digits, upper and lower case letters, and special characters
2022-06-30 03:09:00 【Ray is advancing】
const validatePass = (rule, value, callback) => {
// The code is from 8 More than two digits , Case letters , Special characters make up
const re = new RegExp(`^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*\\W)[^]{8,32}$`)
if (value === '') {
callback(new Error(' Please input a password '))
} else if (!re.test(value)) {
callback(new Error(' The code is from 8 More than two digits , Case letters , Special characters make up '))
} else {
callback()
}
}
边栏推荐
- Interrupt operation: abortcontroller learning notes
- JS 互相引用的问题
- Threejs mirror case reflector create mirror + house construction + small ball movement
- O & M (21) make winpe startup USB flash disk
- JS 字母和数字的相互转换
- How to realize remote collaborative office, keep this strategy!
- NLP text summary: data set introduction and preprocessing [New York Times annotated corpus]
- Study diary: February 15, 2022
- HTA introductory basic tutorial | GUI interface of vbs script HTA concise tutorial, with complete course and interface beautification
- 快速排序、聚簇索引、尋找數據中第k大的值
猜你喜欢

The broadcast module code runs normally in autojs4.1.1, but an error is reported in pro7.0 (not resolved)

What are outer chain and inner chain?

Software testing skills, JMeter stress testing tutorial, transaction controller of logic controller (25)

怎么利用Redis实现点赞功能

编译一个无导入表的DLL

prompt learning 一个空格引发的血案

【直播笔记0629】 并发编程二:锁

Study diary: February 15, 2022

HOOK Native API

图的邻接矩阵存储 C语言实现BFS
随机推荐
General paging (2)
[untitled]
Raki's notes on reading paper: Leveraging type descriptions for zero shot named entity recognition and classification
怎么利用Redis实现点赞功能
OP-diode-限制摆幅
Gulang bilibilibili Live Screen Jackie
Visual HTA form designer htamaker interface introduction and usage, Download | HTA VBS visual script writing
mysqldump原理
Quick sort, cluster index, find the k-largest value in the data
How to use vant to realize data paging and drop-down loading
How can redis+aop customize annotations to achieve flow restriction
Use compose to realize the effect of selecting movie seats by panning tickets
Auto.js学习笔记15:autojs的UI界面基础篇2
O & M (21) make winpe startup USB flash disk
华为面试题: 分糖果
SQLite use
【微信小程序】条件渲染 列表渲染 原来这样用?
JS 互相引用的问题
原生JS怎么生成九宫格
Comparable和Comparator的区别