Skip to content

Commit 4d636e1

Browse files
Enclose the regex characters in code tags.
1 parent 123208d commit 4d636e1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

extending-the-rest-api/schema.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -789,12 +789,12 @@ The regex is not automatically anchored. Regex flags, for instance `/i` to make
789789
The JSON Schema RFC recommends limiting yourself to the following regex features so the schema can be interoperable between as many different programming languages as possible.
790790

791791
- individual Unicode characters, as defined by the JSON specification [RFC4627].
792-
- simple character classes ([abc]), range character classes ([a-z]).
793-
- complemented character classes ([^abc], [^a-z]).
794-
- simple quantifiers: "+" (one or more), "*" (zero or more), "?" (zero or one), and their lazy versions ("+?", "*?", "??").
795-
- range quantifiers: "{x}" (exactly x occurrences), "{x,y}" (at least x, at most y, occurrences), {x,} (x occurrences or more), and their lazy versions.
796-
- the beginning-of-input ("^") and end-of-input ("$") anchors.
797-
- simple grouping ("(...)") and alternation ("|").
792+
- simple character classes `[abc]`, range character classes `[a-z]`.
793+
- complemented character classes `[^abc]`, `[^a-z]`.
794+
- simple quantifiers: `+` (one or more), `*` (zero or more), `?` (zero or one), and their lazy versions `+?`, `*?`, `??`.
795+
- range quantifiers: `{x}` (exactly x occurrences), `{x,y}` (at least x, at most y, occurrences), `{x,}` (x occurrences or more), and their lazy versions.
796+
- the beginning-of-input `^` and end-of-input `$` anchors.
797+
- simple grouping `(...)` and alternation `|`.
798798

799799
The pattern should be valid according to the ECMA 262 regex dialect.
800800

0 commit comments

Comments
 (0)