From 7d701f825792fb6974b2f0807fc6a40cd55c645f Mon Sep 17 00:00:00 2001 From: Starman <30315137+Starman3787@users.noreply.github.com> Date: Sat, 22 Jun 2024 11:45:48 +0100 Subject: [PATCH] lol --- .github/scripts/validate-slash_commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/validate-slash_commands.js b/.github/scripts/validate-slash_commands.js index 09a8631..57f067f 100644 --- a/.github/scripts/validate-slash_commands.js +++ b/.github/scripts/validate-slash_commands.js @@ -63,7 +63,7 @@ try { checkFields(jsonData); - if (jsonData.name && value.match(/^[-_\p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,32}$/gu) == null) { + if (jsonData.name && jsonData.name.match(/^[-_\p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,32}$/gu) == null) { console.error(`Validation error: ${directory}/${file}: Name does not match regex, VALUE: ${value}`); foundErrors = true; } else if (jsonData.description && jsonData.description.length > 100) {