Skip to content

Commit 9fc880b

Browse files
authored
Merge pull request #740 from notEthan/format-pattern-control-char
Move test of \a regex character to optional/format/regex
2 parents d6f1010 + cbd48ea commit 9fc880b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: tests/draft-next/optional/ecmascript-regex.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -409,12 +409,12 @@
409409
"description": "\\a is not an ECMA 262 control escape",
410410
"schema": {
411411
"$schema": "https://json-schema.org/draft/next/schema",
412-
"$ref": "https://json-schema.org/draft/next/schema"
412+
"format": "regex"
413413
},
414414
"tests": [
415415
{
416416
"description": "when used as a pattern",
417-
"data": { "pattern": "\\a" },
417+
"data": "\\a",
418418
"valid": false
419419
}
420420
]

Diff for: tests/draft2020-12/optional/ecmascript-regex.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -409,12 +409,12 @@
409409
"description": "\\a is not an ECMA 262 control escape",
410410
"schema": {
411411
"$schema": "https://json-schema.org/draft/2020-12/schema",
412-
"$ref": "https://json-schema.org/draft/2020-12/schema"
412+
"format": "regex"
413413
},
414414
"tests": [
415415
{
416416
"description": "when used as a pattern",
417-
"data": { "pattern": "\\a" },
417+
"data": "\\a",
418418
"valid": false
419419
}
420420
]

0 commit comments

Comments
 (0)