Skip to content

Commit

Permalink
fix: digits rule bug
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed May 13, 2020
1 parent ee9b879 commit 8662307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rules/src/digits.ts
@@ -1,5 +1,5 @@
const validate = (value: any, { length }: Record<string, any>): boolean => {
length = Number(value);
length = Number(length);
if (Array.isArray(value)) {
return value.every(val => validate(val, { length }));
}
Expand Down

0 comments on commit 8662307

Please sign in to comment.