We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf5bebd commit 9530192Copy full SHA for 9530192
src/ValidationRules.jsx
@@ -15,8 +15,8 @@ const isEmptyTrimed = function (value) {
15
16
const validations = {
17
matchRegexp: (value, regexp) => {
18
- let validationRegexp = (regexp instanceof RegExp ? regexp : (new RegExp(regexp)))
19
- return (!isExisty(value) || _isEmpty(value) || validationRegexp.test(value))
+ const validationRegexp = (regexp instanceof RegExp ? regexp : (new RegExp(regexp)));
+ return (!isExisty(value) || isEmpty(value) || validationRegexp.test(value));
20
},
21
22
// eslint-disable-next-line
0 commit comments