Skip to content

Commit

Permalink
Fix/validator name (#168)
Browse files Browse the repository at this point in the history
* feat: is no a child validator

* fix: eslint

* fix: validator name

* fix: change name

Co-authored-by: glauberbrack <[email protected]>
  • Loading branch information
glauber-brack and glauberbrack authored Oct 1, 2021
1 parent 0250ad6 commit 51e4d7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platformbuilders/validations",
"version": "0.0.16",
"version": "0.0.17",
"description": "",
"author": "Platform Builders <[email protected]>",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/isValidBirthDate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const isValidMinimumAge = (date?: string, minimumAge = 18): boolean => {
return insertedDate.isBetween(minDate, maxDate);
};

export const isNotAChild = (date?: string, minimumAge = 5): boolean => {
export const isValidChildrenAge = (date?: string, minimumAge = 5): boolean => {
const maxAge = 95;
const minDate = DateManager().subtract(maxAge, 'years');
const maxDate = DateManager().subtract(minimumAge, 'years');
Expand Down

0 comments on commit 51e4d7a

Please sign in to comment.