Skip to content

Commit 0f344a6

Browse files
authored
Merge pull request #313 from leadpony/issue309
Replace the control escape \\a with \\t in ecmascript-regex.json
2 parents 1ffe03e + 46c4474 commit 0f344a6

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

tests/draft2019-09/optional/ecmascript-regex.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,20 @@
3030
]
3131
},
3232
{
33-
"description": "ECMA 262 regex converts \\a to ascii BEL",
33+
"description": "ECMA 262 regex converts \\t to horizontal tab",
3434
"schema": {
3535
"type": "string",
36-
"pattern": "^\\a$"
36+
"pattern": "^\\t$"
3737
},
3838
"tests": [
3939
{
4040
"description": "does not match",
41-
"data": "\\a",
41+
"data": "\\t",
4242
"valid": false
4343
},
4444
{
4545
"description": "matches",
46-
"data": "\u0007",
46+
"data": "\u0009",
4747
"valid": true
4848
}
4949
]

tests/draft4/optional/ecmascript-regex.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,20 @@
3030
]
3131
},
3232
{
33-
"description": "ECMA 262 regex converts \\a to ascii BEL",
33+
"description": "ECMA 262 regex converts \\t to horizontal tab",
3434
"schema": {
3535
"type": "string",
36-
"pattern": "^\\a$"
36+
"pattern": "^\\t$"
3737
},
3838
"tests": [
3939
{
4040
"description": "does not match",
41-
"data": "\\a",
41+
"data": "\\t",
4242
"valid": false
4343
},
4444
{
4545
"description": "matches",
46-
"data": "\u0007",
46+
"data": "\u0009",
4747
"valid": true
4848
}
4949
]

tests/draft6/optional/ecmascript-regex.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,20 @@
3030
]
3131
},
3232
{
33-
"description": "ECMA 262 regex converts \\a to ascii BEL",
33+
"description": "ECMA 262 regex converts \\t to horizontal tab",
3434
"schema": {
3535
"type": "string",
36-
"pattern": "^\\a$"
36+
"pattern": "^\\t$"
3737
},
3838
"tests": [
3939
{
4040
"description": "does not match",
41-
"data": "\\a",
41+
"data": "\\t",
4242
"valid": false
4343
},
4444
{
4545
"description": "matches",
46-
"data": "\u0007",
46+
"data": "\u0009",
4747
"valid": true
4848
}
4949
]

tests/draft7/optional/ecmascript-regex.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,20 @@
3030
]
3131
},
3232
{
33-
"description": "ECMA 262 regex converts \\a to ascii BEL",
33+
"description": "ECMA 262 regex converts \\t to horizontal tab",
3434
"schema": {
3535
"type": "string",
36-
"pattern": "^\\a$"
36+
"pattern": "^\\t$"
3737
},
3838
"tests": [
3939
{
4040
"description": "does not match",
41-
"data": "\\a",
41+
"data": "\\t",
4242
"valid": false
4343
},
4444
{
4545
"description": "matches",
46-
"data": "\u0007",
46+
"data": "\u0009",
4747
"valid": true
4848
}
4949
]

0 commit comments

Comments
 (0)