From 9fed001f068c048a0e1b601cc9d94cdee0b22b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20K=C3=A4gy?= Date: Tue, 9 Nov 2021 09:27:30 +0100 Subject: [PATCH] add pattern to `name` key in block.json Schema (#36343) --- schemas/json/block.json | 1 + 1 file changed, 1 insertion(+) diff --git a/schemas/json/block.json b/schemas/json/block.json index 8c1f9e809a2c83..71a7f4d7a9fd4e 100644 --- a/schemas/json/block.json +++ b/schemas/json/block.json @@ -23,6 +23,7 @@ }, "name": { "type": "string", + "pattern": "^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$", "description": "The name for a block is a unique string that identifies a block. Names have to be structured as `namespace/block-name`, where namespace is the name of your plugin or theme." }, "title": {