json-schema-org / website

JSON Schema website
https://json-schema.org
Other
67 stars 177 forks source link

[📝 Docs]: Formatting issues in example on Regular Expressions page #1140

Open Vaent opened 12 hours ago

Vaent commented 12 hours ago

What Docs changes are you proposing?

The page at https://json-schema.org/understanding-json-schema/reference/regular_expressions contains two examples.

The first example (North American telephone number) identifies the schema and identifies whether or not each data sample complies with the schema.

The second example (string wrapped in curly braces permitting newlines) presents the schema as a data sample and doesn't identify which of the actual data samples would be compliant.

I've opened pull request #1115 to format the second example like the first if this issue is accepted (thanks @gregsdennis for the steer!)

Code of Conduct