Skip to content

Commit

Permalink
Simplify test of \a regex character to test directly against `pattern…
Browse files Browse the repository at this point in the history
…` schema
  • Loading branch information
notEthan committed May 19, 2024
1 parent d6f1010 commit cbd48ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/draft-next/optional/ecmascript-regex.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,12 @@
"description": "\\a is not an ECMA 262 control escape",
"schema": {
"$schema": "https://json-schema.org/draft/next/schema",
"$ref": "https://json-schema.org/draft/next/schema"
"format": "regex"
},
"tests": [
{
"description": "when used as a pattern",
"data": { "pattern": "\\a" },
"data": "\\a",
"valid": false
}
]
Expand Down
4 changes: 2 additions & 2 deletions tests/draft2020-12/optional/ecmascript-regex.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,12 @@
"description": "\\a is not an ECMA 262 control escape",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$ref": "https://json-schema.org/draft/2020-12/schema"
"format": "regex"
},
"tests": [
{
"description": "when used as a pattern",
"data": { "pattern": "\\a" },
"data": "\\a",
"valid": false
}
]
Expand Down

0 comments on commit cbd48ea

Please sign in to comment.