diff options
Diffstat (limited to 'json')
-rw-r--r-- | json/tests/draft-next/optional/ecmascript-regex.json | 11 | ||||
-rw-r--r-- | json/tests/draft2020-12/optional/ecmascript-regex.json | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/json/tests/draft-next/optional/ecmascript-regex.json b/json/tests/draft-next/optional/ecmascript-regex.json index 1beb0b3..5bbfc45 100644 --- a/json/tests/draft-next/optional/ecmascript-regex.json +++ b/json/tests/draft-next/optional/ecmascript-regex.json @@ -384,6 +384,17 @@ ] }, { + "description": "\\a is not an ECMA 262 control escape", + "schema": { "$ref": "https://json-schema.org/draft/next/schema" }, + "tests": [ + { + "description": "when used as a pattern", + "data": { "pattern": "\\a" }, + "valid": false + } + ] + }, + { "description": "unicode digits are more than 0 through 9", "schema": { "pattern": "^\\p{digit}+$" }, "tests": [ diff --git a/json/tests/draft2020-12/optional/ecmascript-regex.json b/json/tests/draft2020-12/optional/ecmascript-regex.json index 1beb0b3..bb92acd 100644 --- a/json/tests/draft2020-12/optional/ecmascript-regex.json +++ b/json/tests/draft2020-12/optional/ecmascript-regex.json @@ -384,6 +384,17 @@ ] }, { + "description": "\\a is not an ECMA 262 control escape", + "schema": { "$ref": "https://json-schema.org/draft/2020-12/schema" }, + "tests": [ + { + "description": "when used as a pattern", + "data": { "pattern": "\\a" }, + "valid": false + } + ] + }, + { "description": "unicode digits are more than 0 through 9", "schema": { "pattern": "^\\p{digit}+$" }, "tests": [ |