diff --git a/src/renderer/components/WorkspacePropsTab.vue b/src/renderer/components/WorkspacePropsTab.vue index 3efe6233..2463eaed 100644 --- a/src/renderer/components/WorkspacePropsTab.vue +++ b/src/renderer/components/WorkspacePropsTab.vue @@ -239,11 +239,11 @@ export default { field.defaultType = 'noval'; else if (field.default === 'NULL') field.defaultType = 'null'; - else if (field.default.match(/^\s*(\w+)\s*\((.*)\)$/)) + else if (isNaN(+field.default) && field.default.charAt(0) !== '\'') field.defaultType = 'expression'; else { field.defaultType = 'custom'; - if (isNaN(field.default) && !field.default.includes('\'')) + if (isNaN(+field.default) && !field.default.includes('\'')) field.default = `'${field.default}'`; }