We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85b7b72 commit 11768b1Copy full SHA for 11768b1
src/core/utils.js
@@ -501,13 +501,13 @@ export const validateString = ( val ) => {
501
}
502
503
export const validateDateTime = (val) => {
504
- if (val && typeof val !== "string") {
+ if (!isNaN(Date.parse(val))) {
505
return "Value must be a DateTime"
506
507
508
509
export const validateGuid = (val) => {
510
+ if (!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}[)}]?$/.test(val)) {
511
return "Value must be a Guid"
512
513
0 commit comments