summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-15 21:18:15 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-15 21:18:15 -0500
commita5ba931770cf70b071c00f19dbccb594fb245e06 (patch)
tree5ec2f96c328f7b77d1b7d028157e30ec1b2a61ab
parent1b52adb4fb6bcbe95f562e51ce914534ca1e64e8 (diff)
downloadSMAPI-a5ba931770cf70b071c00f19dbccb594fb245e06.tar.gz
SMAPI-a5ba931770cf70b071c00f19dbccb594fb245e06.tar.bz2
SMAPI-a5ba931770cf70b071c00f19dbccb594fb245e06.zip
improve JSON validator schema for manifest update keys
-rw-r--r--docs/release-notes.md3
-rw-r--r--src/SMAPI.Web/wwwroot/schemas/manifest.json2
2 files changed, 4 insertions, 1 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index 49ee219a..06a133e8 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -17,6 +17,9 @@
* Added in SMAPI 3.9. This has vanilla error-handling that was previously added by SMAPI directly. That simplifies the core SMAPI logic, and lets players or modders disable it if needed.
* Added a detailed message for the _Input string was not in a correct format_ error when the game fails to parse an item text description.
+* For the web UI:
+ * Fixed JSON validator for manifest files marking some update keys as invalid incorrectly.
+
## 3.8.4
Released 15 January 2021 for Stardew Valley 1.5.3 or later.
diff --git a/src/SMAPI.Web/wwwroot/schemas/manifest.json b/src/SMAPI.Web/wwwroot/schemas/manifest.json
index 685b515b..0b265201 100644
--- a/src/SMAPI.Web/wwwroot/schemas/manifest.json
+++ b/src/SMAPI.Web/wwwroot/schemas/manifest.json
@@ -99,7 +99,7 @@
"type": "array",
"items": {
"type": "string",
- "pattern": "^(Chucklefish:\\d+|Nexus:\\d+|GitHub:[A-Za-z0-9_]+/[A-Za-z0-9_]+|ModDrop:\\d+)$",
+ "pattern": "^(?i)(Chucklefish:\\d+|Nexus:\\d+|GitHub:[A-Za-z0-9_\\-]+/[A-Za-z0-9_\\-]+|ModDrop:\\d+)$",
"@errorMessages": {
"pattern": "Invalid update key; see https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Manifest#Update_checks for more info."
}