Skip to content

Commit 433ab2f

Browse files
authored
Merge pull request #286 from Zac-HD/not-patterns
Fix data - escape unicode, not regex pattern
2 parents 2d55450 + dbaa3aa commit 433ab2f

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
@@ -105,7 +105,7 @@
105105
},
106106
{
107107
"description": "NKO DIGIT ZERO (as \\u escape) does not match",
108-
"data": "\\u07c0",
108+
"data": "\u07c0",
109109
"valid": false
110110
}
111111
]
@@ -129,7 +129,7 @@
129129
},
130130
{
131131
"description": "NKO DIGIT ZERO (as \\u escape) matches",
132-
"data": "\\u07c0",
132+
"data": "\u07c0",
133133
"valid": true
134134
}
135135
]
@@ -186,7 +186,7 @@
186186
},
187187
{
188188
"description": "latin-1 non-breaking-space does not match (unlike e.g. Python)",
189-
"data": "\\u00a0",
189+
"data": "\u00a0",
190190
"valid": false
191191
}
192192
]
@@ -205,7 +205,7 @@
205205
},
206206
{
207207
"description": "latin-1 non-breaking-space matches (unlike e.g. Python)",
208-
"data": "\\u00a0",
208+
"data": "\u00a0",
209209
"valid": true
210210
}
211211
]

tests/draft4/optional/ecmascript-regex.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
},
106106
{
107107
"description": "NKO DIGIT ZERO (as \\u escape) does not match",
108-
"data": "\\u07c0",
108+
"data": "\u07c0",
109109
"valid": false
110110
}
111111
]
@@ -129,7 +129,7 @@
129129
},
130130
{
131131
"description": "NKO DIGIT ZERO (as \\u escape) matches",
132-
"data": "\\u07c0",
132+
"data": "\u07c0",
133133
"valid": true
134134
}
135135
]
@@ -186,7 +186,7 @@
186186
},
187187
{
188188
"description": "latin-1 non-breaking-space does not match (unlike e.g. Python)",
189-
"data": "\\u00a0",
189+
"data": "\u00a0",
190190
"valid": false
191191
}
192192
]
@@ -205,7 +205,7 @@
205205
},
206206
{
207207
"description": "latin-1 non-breaking-space matches (unlike e.g. Python)",
208-
"data": "\\u00a0",
208+
"data": "\u00a0",
209209
"valid": true
210210
}
211211
]

tests/draft6/optional/ecmascript-regex.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
},
106106
{
107107
"description": "NKO DIGIT ZERO (as \\u escape) does not match",
108-
"data": "\\u07c0",
108+
"data": "\u07c0",
109109
"valid": false
110110
}
111111
]
@@ -129,7 +129,7 @@
129129
},
130130
{
131131
"description": "NKO DIGIT ZERO (as \\u escape) matches",
132-
"data": "\\u07c0",
132+
"data": "\u07c0",
133133
"valid": true
134134
}
135135
]
@@ -186,7 +186,7 @@
186186
},
187187
{
188188
"description": "latin-1 non-breaking-space does not match (unlike e.g. Python)",
189-
"data": "\\u00a0",
189+
"data": "\u00a0",
190190
"valid": false
191191
}
192192
]
@@ -205,7 +205,7 @@
205205
},
206206
{
207207
"description": "latin-1 non-breaking-space matches (unlike e.g. Python)",
208-
"data": "\\u00a0",
208+
"data": "\u00a0",
209209
"valid": true
210210
}
211211
]

tests/draft7/optional/ecmascript-regex.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
},
106106
{
107107
"description": "NKO DIGIT ZERO (as \\u escape) does not match",
108-
"data": "\\u07c0",
108+
"data": "\u07c0",
109109
"valid": false
110110
}
111111
]
@@ -129,7 +129,7 @@
129129
},
130130
{
131131
"description": "NKO DIGIT ZERO (as \\u escape) matches",
132-
"data": "\\u07c0",
132+
"data": "\u07c0",
133133
"valid": true
134134
}
135135
]
@@ -186,7 +186,7 @@
186186
},
187187
{
188188
"description": "latin-1 non-breaking-space does not match (unlike e.g. Python)",
189-
"data": "\\u00a0",
189+
"data": "\u00a0",
190190
"valid": false
191191
}
192192
]
@@ -205,7 +205,7 @@
205205
},
206206
{
207207
"description": "latin-1 non-breaking-space matches (unlike e.g. Python)",
208-
"data": "\\u00a0",
208+
"data": "\u00a0",
209209
"valid": true
210210
}
211211
]

0 commit comments

Comments
 (0)