From 84ae6d36e46602596e193d3655c79908d2b61b0f Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Sun, 22 Dec 2024 00:02:28 -0500 Subject: [PATCH] fix: Some regular expression libraries require a [ inside a bracket expression to be escaped, #1689 --- schema/dereferenced-release-schema.json | 18 +++++++++--------- schema/release-schema.json | 2 +- .../versioned-release-validation-schema.json | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/schema/dereferenced-release-schema.json b/schema/dereferenced-release-schema.json index f71c5592f..d3df697bd 100644 --- a/schema/dereferenced-release-schema.json +++ b/schema/dereferenced-release-schema.json @@ -4128,7 +4128,7 @@ "number", "null" ], - "pattern": "^[([\\]][0-9]+,([0-9]+|INF)[)[\\]]$" + "pattern": "^[(\\[\\]][0-9]+,([0-9]+|INF)[)\\[\\]]$" } }, "minProperties": 1 @@ -10087,7 +10087,7 @@ "number", "null" ], - "pattern": "^[([\\]][0-9]+,([0-9]+|INF)[)[\\]]$" + "pattern": "^[(\\[\\]][0-9]+,([0-9]+|INF)[)\\[\\]]$" } }, "minProperties": 1 @@ -12641,7 +12641,7 @@ "number", "null" ], - "pattern": "^[([\\]][0-9]+,([0-9]+|INF)[)[\\]]$" + "pattern": "^[(\\[\\]][0-9]+,([0-9]+|INF)[)\\[\\]]$" } }, "minProperties": 1 @@ -19734,7 +19734,7 @@ "number", "null" ], - "pattern": "^[([\\]][0-9]+,([0-9]+|INF)[)[\\]]$" + "pattern": "^[(\\[\\]][0-9]+,([0-9]+|INF)[)\\[\\]]$" } }, "minProperties": 1 @@ -25689,7 +25689,7 @@ "number", "null" ], - "pattern": "^[([\\]][0-9]+,([0-9]+|INF)[)[\\]]$" + "pattern": "^[(\\[\\]][0-9]+,([0-9]+|INF)[)\\[\\]]$" } }, "minProperties": 1 @@ -28237,7 +28237,7 @@ "number", "null" ], - "pattern": "^[([\\]][0-9]+,([0-9]+|INF)[)[\\]]$" + "pattern": "^[(\\[\\]][0-9]+,([0-9]+|INF)[)\\[\\]]$" } }, "minProperties": 1 @@ -39413,7 +39413,7 @@ "number", "null" ], - "pattern": "^[([\\]][0-9]+,([0-9]+|INF)[)[\\]]$" + "pattern": "^[(\\[\\]][0-9]+,([0-9]+|INF)[)\\[\\]]$" } }, "minProperties": 1 @@ -41378,7 +41378,7 @@ "number", "null" ], - "pattern": "^[([\\]][0-9]+,([0-9]+|INF)[)[\\]]$" + "pattern": "^[(\\[\\]][0-9]+,([0-9]+|INF)[)\\[\\]]$" } }, "minProperties": 1 @@ -41428,7 +41428,7 @@ "number", "null" ], - "pattern": "^[([\\]][0-9]+,([0-9]+|INF)[)[\\]]$" + "pattern": "^[(\\[\\]][0-9]+,([0-9]+|INF)[)\\[\\]]$" } }, "minProperties": 1 diff --git a/schema/release-schema.json b/schema/release-schema.json index 46f3ea6d8..5260ed095 100644 --- a/schema/release-schema.json +++ b/schema/release-schema.json @@ -2828,7 +2828,7 @@ "number", "null" ], - "pattern": "^[([\\]][0-9]+,([0-9]+|INF)[)[\\]]$" + "pattern": "^[(\\[\\]][0-9]+,([0-9]+|INF)[)\\[\\]]$" } }, "minProperties": 1 diff --git a/schema/versioned-release-validation-schema.json b/schema/versioned-release-validation-schema.json index 55b8de369..6f30442d7 100644 --- a/schema/versioned-release-validation-schema.json +++ b/schema/versioned-release-validation-schema.json @@ -3308,7 +3308,7 @@ "number", "null" ], - "pattern": "^[([\\]][0-9]+,([0-9]+|INF)[)[\\]]$" + "pattern": "^[(\\[\\]][0-9]+,([0-9]+|INF)[)\\[\\]]$" }, "releaseTag": { "type": "array",