Skip to content

Commit 09628cb

Browse files
authored
Merge pull request #113 from haacked/haacked/release-0.10.1
Increase version to 0.10.1
2 parents 36a24f1 + b2a8327 commit 09628cb

5 files changed

+7
-7
lines changed

dist/aspnet-validation.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ var MvcValidationProviders = /** @class */ (function () {
231231
}
232232
return false;
233233
}
234-
// Default behavior otherwise.
235-
return Boolean(value);
234+
// Default behavior otherwise (trim ensures whitespace only is not seen as valid).
235+
return Boolean(value === null || value === void 0 ? void 0 : value.trim());
236236
};
237237
/**
238238
* Validates whether the input value satisfies the length contstraint.

0 commit comments

Comments
 (0)