@xano/cli 0.0.95-beta.23 → 0.0.95-beta.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -196,8 +196,8 @@ function extractSchemaFields(content) {
196
196
  if (blockStart < 0 || blockEnd < 0)
197
197
  return fields;
198
198
  const schemaBlock = content.slice(blockStart, blockEnd);
199
- // Match field declarations: "type name" or "type name?" or "type name?=default"
200
- const fieldRegex = /^\s*\w+\s+(\w+)[?\s{]/gm;
199
+ // Match field declarations: "type name" or "type? name" or "type name?=default"
200
+ const fieldRegex = /^\s*\w+\??\s+(\w+)[?\s{]/gm;
201
201
  let match;
202
202
  while ((match = fieldRegex.exec(schemaBlock)) !== null) {
203
203
  fields.add(match[1]);