Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Bug Fix) isDate function: Add validation for delimiter and length ch… #2455

Closed
wants to merge 3 commits into from

Conversation

Osho957
Copy link

@Osho957 Osho957 commented Sep 17, 2024

Issue #2452

fix(isDate): Add validation for delimiter and length checks to prevent undefined errors

Enhanced the isDate function by verifying valid delimiters and ensuring that input and format parts are properly validated before performing length comparisons. This prevents undefined errors when an invalid string (e.g., "abcd") is passed. The input string is now properly validated against the format.

No external references were used, but this fix was based on the structure of how the isDate function processes date formats and delimiters.

Checklist

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

@Osho957 Osho957 closed this by deleting the head repository Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant