jalali-moment
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -419,3 +419,3 @@ | ||
} | ||
if (isNull(input)){ | ||
if (isNull(input)) { | ||
config._isValid = false; | ||
@@ -664,3 +664,3 @@ } | ||
} | ||
if (config._isValid === false){ | ||
if (config._isValid === false || (input._isAMomentObject && !input._isValid)){ | ||
m._isValid = false; | ||
@@ -667,0 +667,0 @@ } |
{ | ||
"name": "jalali-moment", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "Display, parse, manipulate ,validate and convert jalali (Persian, Khorshidi, Shamsi) date and time", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -917,3 +917,8 @@ | ||
}); | ||
it("clone of an invalid date is invalid", function () { | ||
var m1 = moment("hello","jYYYY/jMM/jDD"); | ||
m1.isValid().should.be.equal(false); | ||
m1.clone().isValid().should.be.equal(false); | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1579458
17
18117