Skip to content

Commit

Permalink
lol
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Jun 22, 2024
1 parent 138b39c commit 7d701f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/validate-slash_commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7d701f8

Please sign in to comment.