You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the Issue and Steps to Reproduce: isBetween() returns true when passed an invalid date with both inclusive flags set:
>constinval=newDate('foo')undefined>moment(inval)moment.invalid(/* Invalid Date */)>moment(inval).isBetween('2010-01','2011-01')false>moment(inval).isBetween('2010-01','2011-01',null)false>moment(inval).isBetween('2010-01','2011-01',null,'()')false>moment(inval).isBetween('2010-01','2011-01',null,'[]')true
Environment:
node 8.9.1 on Ubuntu 16.04 LTS
Other information that may be helpful:
If you are reporting an issue, please run the following code in the environment you are using and include the output:
Description of the Issue and Steps to Reproduce:
isBetween()
returnstrue
when passed an invalid date with both inclusive flags set:Environment:
node 8.9.1 on Ubuntu 16.04 LTS
Other information that may be helpful:
If you are reporting an issue, please run the following code in the environment you are using and include the output:
output:
The text was updated successfully, but these errors were encountered: