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 }" ```