Skip to content

Commit

Permalink
fix: wrong date or time detection in field default
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Feb 15, 2021
1 parent 34ebc6b commit 9d5ebef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/WorkspacePropsTableRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9d5ebef

Please sign in to comment.