Skip to content

Commit 8f2c85f

Browse files
authored
Update regular_expressions.md (#1115)
Identify the schema for the last example. Identify the compliant and noncompliant data. Make indentation consistent with the example above it.
1 parent 0caf296 commit 8f2c85f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

pages/understanding-json-schema/reference/regular_expressions.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,17 @@ The following example checks that the string starts with `{{` and ends with `}}`
8585
and that it also allows multiline strings.
8686

8787
```json
88-
{
89-
"type": "string",
90-
"pattern": "^\\{\\{(.|[\\r\\n])*\\}\\}$",
91-
}
88+
// props { "isSchema": true }
89+
{
90+
"type": "string",
91+
"pattern": "^\\{\\{(.|[\\r\\n])*\\}\\}$",
92+
}
9293
```
9394
```json
94-
"{{ foo\nbar }}"
95+
// props { "indent": true, "valid": true }
96+
"{{ foo\nbar }}"
9597
```
9698
```json
97-
"{ foo }"
99+
// props { "indent": true, "valid": false }
100+
"{ foo }"
98101
```

0 commit comments

Comments
 (0)