diff --git a/plugins/catalog-react/src/alpha/blueprints/EntityCardBlueprint.test.tsx b/plugins/catalog-react/src/alpha/blueprints/EntityCardBlueprint.test.tsx index 090f559915..af04673ad1 100644 --- a/plugins/catalog-react/src/alpha/blueprints/EntityCardBlueprint.test.tsx +++ b/plugins/catalog-react/src/alpha/blueprints/EntityCardBlueprint.test.tsx @@ -120,7 +120,7 @@ describe('EntityCardBlueprint', () => { "not": {}, }, "propertyNames": { - "pattern": "(?!\\$)+", + "pattern": "^\\$", }, "type": "object", }, diff --git a/plugins/catalog-react/src/alpha/blueprints/EntityContentBlueprint.test.tsx b/plugins/catalog-react/src/alpha/blueprints/EntityContentBlueprint.test.tsx index 6c0f99b5b4..e80834be92 100644 --- a/plugins/catalog-react/src/alpha/blueprints/EntityContentBlueprint.test.tsx +++ b/plugins/catalog-react/src/alpha/blueprints/EntityContentBlueprint.test.tsx @@ -122,7 +122,7 @@ describe('EntityContentBlueprint', () => { "not": {}, }, "propertyNames": { - "pattern": "(?!\\$)+", + "pattern": "^\\$", }, "type": "object", }, diff --git a/plugins/catalog-react/src/alpha/blueprints/EntityContextMenuItemBlueprint.test.tsx b/plugins/catalog-react/src/alpha/blueprints/EntityContextMenuItemBlueprint.test.tsx index ddfe63e7e6..d92fcc1863 100644 --- a/plugins/catalog-react/src/alpha/blueprints/EntityContextMenuItemBlueprint.test.tsx +++ b/plugins/catalog-react/src/alpha/blueprints/EntityContextMenuItemBlueprint.test.tsx @@ -133,7 +133,7 @@ describe('EntityContextMenuItemBlueprint', () => { "not": {}, }, "propertyNames": { - "pattern": "(?!\\$)+", + "pattern": "^\\$", }, "type": "object", }, diff --git a/plugins/catalog-react/src/alpha/predicates/createEntityPredicateSchema.ts b/plugins/catalog-react/src/alpha/predicates/createEntityPredicateSchema.ts index c04a74db57..3e31ec4d35 100644 --- a/plugins/catalog-react/src/alpha/predicates/createEntityPredicateSchema.ts +++ b/plugins/catalog-react/src/alpha/predicates/createEntityPredicateSchema.ts @@ -36,7 +36,7 @@ export function createEntityPredicateSchema(z: typeof zImpl) { const expressionSchema = z.lazy(() => z.union([ z.record(z.string().regex(/^(?!\$).*$/), valuePredicateSchema), - z.record(z.string().regex(/(?!\$)+/), z.never()), + z.record(z.string().regex(/^\$/), z.never()), ]), ) as ZodType;