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

isValid has bug with string #138

Open
farzadniazmand opened this issue May 20, 2024 · 0 comments
Open

isValid has bug with string #138

farzadniazmand opened this issue May 20, 2024 · 0 comments

Comments

@farzadniazmand
Copy link

farzadniazmand commented May 20, 2024

this code should return false but it returns true:

try {
    return jalaliMoment('invalid string', 'jYYYY/jM/jD').isValid();
  } catch (e) {
    return false;
  }
}

However the same code in momentJs returns correct answer

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

No branches or pull requests

1 participant