@wix/form-public 0.522.0 → 0.523.0
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -248,7 +248,7 @@ function deriveError(validation, error, options) {
|
|
|
248
248
|
if (!error) {
|
|
249
249
|
return error;
|
|
250
250
|
}
|
|
251
|
-
return derivePatternError(error) ?? deriveCharacterLengthError(validation, error) ?? deriveItemsCountError(validation, error) ?? deriveNumericValueError(validation, error) ??
|
|
251
|
+
return derivePatternError(error) ?? deriveCharacterLengthError(validation, error) ?? deriveItemsCountError(validation, error) ?? deriveNumericValueError(validation, error) ?? deriveDateTimeFieldError(validation, error, options?.value) ?? deriveDateFieldError(validation, error, options?.value) ?? error;
|
|
252
252
|
}
|
|
253
253
|
function derivePatternError(error) {
|
|
254
254
|
if (!error || error.errorType !== ErrorType.PATTERN_ERROR) {
|