From dbaa3aacd9280f3e4027042d6c1e9b5716d1b0c4 Mon Sep 17 00:00:00 2001 From: Zac-HD Date: Mon, 7 Oct 2019 11:12:37 +1100 Subject: [PATCH] Fix data - escape unicode, not regex pattern --- tests/draft2019-09/optional/ecmascript-regex.json | 8 ++++---- tests/draft4/optional/ecmascript-regex.json | 8 ++++---- tests/draft6/optional/ecmascript-regex.json | 8 ++++---- tests/draft7/optional/ecmascript-regex.json | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/tests/draft2019-09/optional/ecmascript-regex.json b/tests/draft2019-09/optional/ecmascript-regex.json index 7a0cb77e..d82e0feb 100644 --- a/tests/draft2019-09/optional/ecmascript-regex.json +++ b/tests/draft2019-09/optional/ecmascript-regex.json @@ -105,7 +105,7 @@ }, { "description": "NKO DIGIT ZERO (as \\u escape) does not match", - "data": "\\u07c0", + "data": "\u07c0", "valid": false } ] @@ -129,7 +129,7 @@ }, { "description": "NKO DIGIT ZERO (as \\u escape) matches", - "data": "\\u07c0", + "data": "\u07c0", "valid": true } ] @@ -186,7 +186,7 @@ }, { "description": "latin-1 non-breaking-space does not match (unlike e.g. Python)", - "data": "\\u00a0", + "data": "\u00a0", "valid": false } ] @@ -205,7 +205,7 @@ }, { "description": "latin-1 non-breaking-space matches (unlike e.g. Python)", - "data": "\\u00a0", + "data": "\u00a0", "valid": true } ] diff --git a/tests/draft4/optional/ecmascript-regex.json b/tests/draft4/optional/ecmascript-regex.json index 7a0cb77e..d82e0feb 100644 --- a/tests/draft4/optional/ecmascript-regex.json +++ b/tests/draft4/optional/ecmascript-regex.json @@ -105,7 +105,7 @@ }, { "description": "NKO DIGIT ZERO (as \\u escape) does not match", - "data": "\\u07c0", + "data": "\u07c0", "valid": false } ] @@ -129,7 +129,7 @@ }, { "description": "NKO DIGIT ZERO (as \\u escape) matches", - "data": "\\u07c0", + "data": "\u07c0", "valid": true } ] @@ -186,7 +186,7 @@ }, { "description": "latin-1 non-breaking-space does not match (unlike e.g. Python)", - "data": "\\u00a0", + "data": "\u00a0", "valid": false } ] @@ -205,7 +205,7 @@ }, { "description": "latin-1 non-breaking-space matches (unlike e.g. Python)", - "data": "\\u00a0", + "data": "\u00a0", "valid": true } ] diff --git a/tests/draft6/optional/ecmascript-regex.json b/tests/draft6/optional/ecmascript-regex.json index 7a0cb77e..d82e0feb 100644 --- a/tests/draft6/optional/ecmascript-regex.json +++ b/tests/draft6/optional/ecmascript-regex.json @@ -105,7 +105,7 @@ }, { "description": "NKO DIGIT ZERO (as \\u escape) does not match", - "data": "\\u07c0", + "data": "\u07c0", "valid": false } ] @@ -129,7 +129,7 @@ }, { "description": "NKO DIGIT ZERO (as \\u escape) matches", - "data": "\\u07c0", + "data": "\u07c0", "valid": true } ] @@ -186,7 +186,7 @@ }, { "description": "latin-1 non-breaking-space does not match (unlike e.g. Python)", - "data": "\\u00a0", + "data": "\u00a0", "valid": false } ] @@ -205,7 +205,7 @@ }, { "description": "latin-1 non-breaking-space matches (unlike e.g. Python)", - "data": "\\u00a0", + "data": "\u00a0", "valid": true } ] diff --git a/tests/draft7/optional/ecmascript-regex.json b/tests/draft7/optional/ecmascript-regex.json index 7a0cb77e..d82e0feb 100644 --- a/tests/draft7/optional/ecmascript-regex.json +++ b/tests/draft7/optional/ecmascript-regex.json @@ -105,7 +105,7 @@ }, { "description": "NKO DIGIT ZERO (as \\u escape) does not match", - "data": "\\u07c0", + "data": "\u07c0", "valid": false } ] @@ -129,7 +129,7 @@ }, { "description": "NKO DIGIT ZERO (as \\u escape) matches", - "data": "\\u07c0", + "data": "\u07c0", "valid": true } ] @@ -186,7 +186,7 @@ }, { "description": "latin-1 non-breaking-space does not match (unlike e.g. Python)", - "data": "\\u00a0", + "data": "\u00a0", "valid": false } ] @@ -205,7 +205,7 @@ }, { "description": "latin-1 non-breaking-space matches (unlike e.g. Python)", - "data": "\\u00a0", + "data": "\u00a0", "valid": true } ]