From d376188705304b6001c374c3ee422d0272e4900a Mon Sep 17 00:00:00 2001 From: Vaent Date: Thu, 14 Nov 2024 12:51:46 +0000 Subject: [PATCH] Update regular_expressions.md Identify the schema for the last example. Identify the compliant and noncompliant data. Make indentation consistent with the example above it. --- .../reference/regular_expressions.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pages/understanding-json-schema/reference/regular_expressions.md b/pages/understanding-json-schema/reference/regular_expressions.md index 1b85ee9fc..5e5147aee 100644 --- a/pages/understanding-json-schema/reference/regular_expressions.md +++ b/pages/understanding-json-schema/reference/regular_expressions.md @@ -85,14 +85,17 @@ The following example checks that the string starts with `{{` and ends with `}}` and that it also allows multiline strings. ```json - { - "type": "string", - "pattern": "^\\{\\{(.|[\\r\\n])*\\}\\}$", - } +// props { "isSchema": true } +{ + "type": "string", + "pattern": "^\\{\\{(.|[\\r\\n])*\\}\\}$", +} ``` ```json - "{{ foo\nbar }}" +// props { "indent": true, "valid": true } +"{{ foo\nbar }}" ``` ```json - "{ foo }" +// props { "indent": true, "valid": false } +"{ foo }" ```