Skip to content

Commit fdf8268

Browse files
committed
Squashed 'json/' changes from 387d690ae..e42e8417b
e42e8417b \a is not a valid ECMA 262 regex. git-subtree-dir: json git-subtree-split: e42e8417b6094c613a7bd6a2f1fbbbf48ade66ff
1 parent 7d13582 commit fdf8268

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

tests/draft-next/optional/ecmascript-regex.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,17 @@
383383
}
384384
]
385385
},
386+
{
387+
"description": "\\a is not an ECMA 262 control escape",
388+
"schema": { "$ref": "https://json-schema.org/draft/next/schema" },
389+
"tests": [
390+
{
391+
"description": "when used as a pattern",
392+
"data": { "pattern": "\\a" },
393+
"valid": false
394+
}
395+
]
396+
},
386397
{
387398
"description": "unicode digits are more than 0 through 9",
388399
"schema": { "pattern": "^\\p{digit}+$" },

tests/draft2020-12/optional/ecmascript-regex.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,17 @@
383383
}
384384
]
385385
},
386+
{
387+
"description": "\\a is not an ECMA 262 control escape",
388+
"schema": { "$ref": "https://json-schema.org/draft/2020-12/schema" },
389+
"tests": [
390+
{
391+
"description": "when used as a pattern",
392+
"data": { "pattern": "\\a" },
393+
"valid": false
394+
}
395+
]
396+
},
386397
{
387398
"description": "unicode digits are more than 0 through 9",
388399
"schema": { "pattern": "^\\p{digit}+$" },

0 commit comments

Comments
 (0)