Skip to content

Commit 878b0ad

Browse files
properly escape this newline character - thanks Srikrishnan Suresh!
1 parent bb2a20d commit 878b0ad

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

tests/draft-future/optional/ecmascript-regex.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"tests": [
99
{
1010
"description": "matches in Python, but should not in jsonschema",
11-
"data": "abc\n",
11+
"data": "abc\\n",
1212
"valid": false
1313
},
1414
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"tests": [
99
{
1010
"description": "matches in Python, but should not in jsonschema",
11-
"data": "abc\n",
11+
"data": "abc\\n",
1212
"valid": false
1313
},
1414
{

tests/draft2020-12/optional/ecmascript-regex.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"tests": [
99
{
1010
"description": "matches in Python, but should not in jsonschema",
11-
"data": "abc\n",
11+
"data": "abc\\n",
1212
"valid": false
1313
},
1414
{

tests/draft4/optional/ecmascript-regex.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"tests": [
99
{
1010
"description": "matches in Python, but should not in jsonschema",
11-
"data": "abc\n",
11+
"data": "abc\\n",
1212
"valid": false
1313
},
1414
{

tests/draft6/optional/ecmascript-regex.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"tests": [
99
{
1010
"description": "matches in Python, but should not in jsonschema",
11-
"data": "abc\n",
11+
"data": "abc\\n",
1212
"valid": false
1313
},
1414
{

tests/draft7/optional/ecmascript-regex.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"tests": [
99
{
1010
"description": "matches in Python, but should not in jsonschema",
11-
"data": "abc\n",
11+
"data": "abc\\n",
1212
"valid": false
1313
},
1414
{

0 commit comments

Comments
 (0)