UNPKG
atikin-universal-validator
Version:
latest (1.0.1)
1.0.1
1.0.0
A blazing-fast, zero-dependency validator for frontend and backend JS/TS applications.
atikin-universal-validator
/
dist
/
validators
/
isStrongPassword.js
7 lines
(6 loc)
•
254 B
JavaScript
View Raw
1
2
3
4
5
6
7
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
isStrongPassword
= isStrongPassword;
function
isStrongPassword
(
value
) {
return
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/
.
test
(value); }