From 9d5ebefdced999af595f3d8dc2fac2b18fa8258b Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Mon, 15 Feb 2021 09:58:43 +0100 Subject: [PATCH] fix: wrong date or time detection in field default --- src/renderer/components/WorkspacePropsTableRow.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/components/WorkspacePropsTableRow.vue b/src/renderer/components/WorkspacePropsTableRow.vue index 70eec017..6f7bfe14 100644 --- a/src/renderer/components/WorkspacePropsTableRow.vue +++ b/src/renderer/components/WorkspacePropsTableRow.vue @@ -400,7 +400,7 @@ export default { this.defaultValue.type = 'custom'; this.defaultValue.custom = this.localRow.default.replace(/(^')|('$)/g, ''); } - else if (!isNaN(this.localRow.default)) { + else if (!isNaN(this.localRow.default.replace(/[:.-\s]/g, ''))) { this.defaultValue.type = 'custom'; this.defaultValue.custom = this.localRow.default; }