Skip to content

Fix data - escape unicode, not regex pattern #286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/draft2019-09/optional/ecmascript-regex.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
},
{
"description": "NKO DIGIT ZERO (as \\u escape) does not match",
"data": "\\u07c0",
"data": "\u07c0",
"valid": false
}
]
Expand All @@ -129,7 +129,7 @@
},
{
"description": "NKO DIGIT ZERO (as \\u escape) matches",
"data": "\\u07c0",
"data": "\u07c0",
"valid": true
}
]
Expand Down Expand Up @@ -186,7 +186,7 @@
},
{
"description": "latin-1 non-breaking-space does not match (unlike e.g. Python)",
"data": "\\u00a0",
"data": "\u00a0",
"valid": false
}
]
Expand All @@ -205,7 +205,7 @@
},
{
"description": "latin-1 non-breaking-space matches (unlike e.g. Python)",
"data": "\\u00a0",
"data": "\u00a0",
"valid": true
}
]
Expand Down
8 changes: 4 additions & 4 deletions tests/draft4/optional/ecmascript-regex.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
},
{
"description": "NKO DIGIT ZERO (as \\u escape) does not match",
"data": "\\u07c0",
"data": "\u07c0",
"valid": false
}
]
Expand All @@ -129,7 +129,7 @@
},
{
"description": "NKO DIGIT ZERO (as \\u escape) matches",
"data": "\\u07c0",
"data": "\u07c0",
"valid": true
}
]
Expand Down Expand Up @@ -186,7 +186,7 @@
},
{
"description": "latin-1 non-breaking-space does not match (unlike e.g. Python)",
"data": "\\u00a0",
"data": "\u00a0",
"valid": false
}
]
Expand All @@ -205,7 +205,7 @@
},
{
"description": "latin-1 non-breaking-space matches (unlike e.g. Python)",
"data": "\\u00a0",
"data": "\u00a0",
"valid": true
}
]
Expand Down
8 changes: 4 additions & 4 deletions tests/draft6/optional/ecmascript-regex.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
},
{
"description": "NKO DIGIT ZERO (as \\u escape) does not match",
"data": "\\u07c0",
"data": "\u07c0",
"valid": false
}
]
Expand All @@ -129,7 +129,7 @@
},
{
"description": "NKO DIGIT ZERO (as \\u escape) matches",
"data": "\\u07c0",
"data": "\u07c0",
"valid": true
}
]
Expand Down Expand Up @@ -186,7 +186,7 @@
},
{
"description": "latin-1 non-breaking-space does not match (unlike e.g. Python)",
"data": "\\u00a0",
"data": "\u00a0",
"valid": false
}
]
Expand All @@ -205,7 +205,7 @@
},
{
"description": "latin-1 non-breaking-space matches (unlike e.g. Python)",
"data": "\\u00a0",
"data": "\u00a0",
"valid": true
}
]
Expand Down
8 changes: 4 additions & 4 deletions tests/draft7/optional/ecmascript-regex.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
},
{
"description": "NKO DIGIT ZERO (as \\u escape) does not match",
"data": "\\u07c0",
"data": "\u07c0",
"valid": false
}
]
Expand All @@ -129,7 +129,7 @@
},
{
"description": "NKO DIGIT ZERO (as \\u escape) matches",
"data": "\\u07c0",
"data": "\u07c0",
"valid": true
}
]
Expand Down Expand Up @@ -186,7 +186,7 @@
},
{
"description": "latin-1 non-breaking-space does not match (unlike e.g. Python)",
"data": "\\u00a0",
"data": "\u00a0",
"valid": false
}
]
Expand All @@ -205,7 +205,7 @@
},
{
"description": "latin-1 non-breaking-space matches (unlike e.g. Python)",
"data": "\\u00a0",
"data": "\u00a0",
"valid": true
}
]
Expand Down