Skip to content

Commit

Permalink
fix: add underscore to player pattern (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaDerpDuck authored Jun 20, 2024
1 parent 3ef2f75 commit 180984b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/builtin/types/players.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const PlayersType = TypeBuilder.create<Player[]>(CommanderType.Players)
.validate(t.array(isPlayer))
.transform((text, executor) => {
let players: Player[] = [];
for (const [part] of text.gmatch("[@%w%.%*]+")) {
for (const [part] of text.gmatch("[@_%w%.%*]+")) {
const textPart = part as string;

if (textPart === "@all" || textPart === "*") {
Expand Down

0 comments on commit 180984b

Please sign in to comment.