Skip to content

Commit

Permalink
[FIX] invite-all-from and invite-all-to commands don't work with mult…
Browse files Browse the repository at this point in the history
…ibyte room names (#18919)
  • Loading branch information
Felipe Parreira authored Sep 16, 2020
1 parent 6a4f474 commit c4a6ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/slashcommands-inviteall/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function inviteAll(type) {
return;
}

const regexp = /#?([\d-_\w]+)/g;
const regexp = /#?([^\s,.:;"']+)(?=[\s,.:;"']|$)/g;
const [, channel] = regexp.exec(params.trim());

if (!channel) {
Expand Down

0 comments on commit c4a6ffd

Please sign in to comment.