@sumaris-net/ngx-components 2.5.11 → 2.5.12-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/app/shared/validator/validators.mjs +2 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +1 -1
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3646,7 +3646,7 @@ class SharedValidators {
|
|
|
3646
3646
|
static validDate(control) {
|
|
3647
3647
|
const value = control.value;
|
|
3648
3648
|
const date = !value || isMoment(value) ? value : DateUtils.moment(value, DATE_ISO_PATTERN);
|
|
3649
|
-
if (date && (!date.isValid() || date.year() <
|
|
3649
|
+
if (date && (!date.isValid() || date.year() < 1900)) {
|
|
3650
3650
|
return { validDate: true };
|
|
3651
3651
|
}
|
|
3652
3652
|
return null;
|