fix(isInt, isFloat): Handle undefined and null values by Daniyal-Qureshi · Pull Request #2416 · validatorjs/validator.js

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@Daniyal-Qureshi

Copy link Copy Markdown

Contributor

Enhanced both the 'isInt' and 'isFloat' functions by incorporating checks for null and undefined values, enabling them to handle cases where the input may be null or undefined

Issue Referenced

#2328

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)
  • References provided in PR (where applicable)

@rubiin rubiin requested a review from profnandaa

June 7, 2024 04:52

@rubiin rubiin added the ✅ LGTM label

Jun 7, 2024

@Daniyal-Qureshi

Copy link Copy Markdown

Contributor Author

Hi @profnandaa,
could you please review this PR.

Copy link Copy Markdown

Member

@profnandaa profnandaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix! 🎉

Daniyal-Qureshi reacted with hooray emoji

@profnandaa profnandaa merged commit acdebd6 into validatorjs:master

Jun 22, 2024

@CptMaumau

Copy link Copy Markdown

Hi @profnandaa will it be part of a release soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@profnandaa profnandaa profnandaa approved these changes

@rubiin rubiin rubiin approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@Daniyal-Qureshi @CptMaumau @profnandaa @rubiin