Skip to content

Commit a45d267

Browse files
authored
Merge pull request #1470 from lukem/main
Regex editorial improvements, and permit "."
2 parents 93aeaea + ac0a13c commit a45d267

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

jsonschema-core.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -400,14 +400,16 @@ tokens:
400400

401401
- individual Unicode characters, as defined by the [JSON
402402
specification](#rfc8259);
403-
- simple character classes ([abc]), range character classes ([a-z]);
404-
- complemented character classes ([^abc], [^a-z]);
405-
- simple quantifiers: "+" (one or more), "*" (zero or more), "?" (zero or one),
406-
and their lazy versions ("+?", "*?", "??");
407-
- range quantifiers: "{x}" (exactly x occurrences), "{x,y}" (at least x, at most
403+
- simple atoms: `.` (any character except line terminator);
404+
- simple character classes (`[abc]`), range character classes (`[a-z]`);
405+
- complemented simple character classes (`[^abc]`);
406+
- complemented range character classes (`[^a-z]`);
407+
- simple quantifiers: `+` (one or more), `*` (zero or more), `?` (zero or one),
408+
and their lazy versions (`+?`, `*?`, `??`);
409+
- range quantifiers: `{x}` (exactly x occurrences), `{x,y}` (at least x, at most
408410
y, occurrences), {x,} (x occurrences or more), and their lazy versions;
409-
- the beginning-of-input ("^") and end-of-input ("$") anchors;
410-
- simple grouping ("(...)") and alternation ("|").
411+
- the beginning-of-input (`^`) and end-of-input (`$`) anchors;
412+
- simple grouping (using `(` and `)`) and alternation (`|`).
411413

412414
Finally, implementations MUST NOT take regular expressions to be anchored,
413415
neither at the beginning nor at the end. This means, for instance, the pattern

0 commit comments

Comments
 (0)