Skip to content

Commit

Permalink
fix command name check
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Jun 22, 2024
1 parent c406a62 commit 547e47d
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 @@ -45,7 +45,7 @@ try {
console.error(`Validation error: ${directory}/${file}: Description exceeds 100 characters at '${currentPath}'`);
foundErrors = true;
}
if (currentPath.endsWith('.name') && value.includes(' ')) {
if (currentPath.endsWith('.name') && /^[-_\p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,32}$/.test(value) == false) {
console.error(`Validation error: ${directory}/${file}: Name contains space at '${currentPath}'`);
foundErrors = true;
}
Expand Down

0 comments on commit 547e47d

Please sign in to comment.