From 139dd2660060d30386ba75cc5cf258670439fa0e Mon Sep 17 00:00:00 2001 From: irocendar <97824271+irocendar@users.noreply.github.com> Date: Fri, 25 Jul 2025 06:52:02 +0100 Subject: [PATCH] Add support for multiple spaces in warps fields --- src/SMAPI.Web/wwwroot/schemas/content-patcher.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SMAPI.Web/wwwroot/schemas/content-patcher.json b/src/SMAPI.Web/wwwroot/schemas/content-patcher.json index b6aa4b80..cf9b5549 100644 --- a/src/SMAPI.Web/wwwroot/schemas/content-patcher.json +++ b/src/SMAPI.Web/wwwroot/schemas/content-patcher.json @@ -353,7 +353,7 @@ "type": "array", "items": { "type": "string", - "pattern": " *((.*\\{\\{.*\\}\\}.*)|-?\\d+ -?\\d+ [A-Za-z0-9_\\.]+ -?\\d+ -?\\d+) *$", + "pattern": " *((.*\\{\\{.*\\}\\}.*)|(-?\\d+ +-?\\d+ +[A-Za-z0-9_\\.]+ +-?\\d+ +-?\\d+)) *$", "@errorMessages": { "pattern": "Each warp must match the exact format recognized by the game's Warp map property (i.e. 'fromX fromY targetMap targetX targetY', like '10 10 Town 0 30')." } @@ -365,7 +365,7 @@ "type": "array", "items": { "type": "string", - "pattern": " *((.*\\{\\{.*\\}\\}.*)|(-?\\d+ -?\\d+ [A-Za-z0-9_\\.]+ -?\\d+ -?\\d+)) *$", + "pattern": " *((.*\\{\\{.*\\}\\}.*)|(-?\\d+ +-?\\d+ +[A-Za-z0-9_\\.]+ +-?\\d+ +-?\\d+)) *$", "@errorMessages": { "pattern": "Each warp must match the exact format recognized by the game's NPCWarp map property (i.e. 'fromX fromY targetMap targetX targetY', like '10 10 Town 0 30')." }