From 597cf4cd76e0d7bbaf93af90b2f87df11a5bc74c Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Tue, 7 Oct 2025 12:38:56 +0200 Subject: [PATCH] fix(webui): allow digits in itemtype for add items(raw) For items like `/Lotus/Types/Keys/TacAlertKeyAnniversary2023k` --- static/webui/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/webui/script.js b/static/webui/script.js index a2615eef..dc0d7f32 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -2844,8 +2844,8 @@ function removeCountItems(uniqueName, count) { function addItemByItemType() { const ItemType = document.getElementById("typeName-type").value; - // Must start with "/Lotus/", contain only A–Z letters, no "//", and not end with "/" - if (!ItemType || !/^\/Lotus\/(?:[A-Za-z]+(?:\/[A-Za-z]+)*)$/.test(ItemType)) { + // Must start with "/Lotus/", contain only letters A–Z, digits 0–9, no "//", and not end with "/" + if (!ItemType || !/^\/Lotus\/(?:[A-Za-z0-9]+(?:\/[A-Za-z0-9]+)*)$/.test(ItemType)) { $("#typeName-type").addClass("is-invalid").focus(); return; } -- 2.47.2