Skip to content

Commit 9530192

Browse files
committed
[fix]es - remove eslint warning and errors
1 parent cf5bebd commit 9530192

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ValidationRules.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const isEmptyTrimed = function (value) {
1515

1616
const validations = {
1717
matchRegexp: (value, regexp) => {
18-
let validationRegexp = (regexp instanceof RegExp ? regexp : (new RegExp(regexp)))
19-
return (!isExisty(value) || _isEmpty(value) || validationRegexp.test(value))
18+
const validationRegexp = (regexp instanceof RegExp ? regexp : (new RegExp(regexp)));
19+
return (!isExisty(value) || isEmpty(value) || validationRegexp.test(value));
2020
},
2121

2222
// eslint-disable-next-line

0 commit comments

Comments
 (0)