3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 15:15:02 +00:00

Allow "e" to act as expand as well

Missed a bracket that i thought i added
This commit is contained in:
Nils Blömeke 2019-03-09 18:06:12 +01:00 committed by GitHub
parent ff6812cc4e
commit 37d59c8d96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1144,7 +1144,7 @@ export class ModActionsPlugin extends ZeppelinPlugin<IModActionsPluginConfig, IM
const showHidden = args.opts && args.opts.match(/\bhidden\b/); const showHidden = args.opts && args.opts.match(/\bhidden\b/);
const casesToDisplay = showHidden ? cases : normalCases; const casesToDisplay = showHidden ? cases : normalCases;
if (args.opts && (args.opts.match(/\bexpand\b/) || args.opts.match(/\be\b/)) { if (args.opts && (args.opts.match(/\bexpand\b/) || args.opts.match(/\be\b/))) {
if (casesToDisplay.length > 8) { if (casesToDisplay.length > 8) {
msg.channel.createMessage("Too many cases for expanded view. Please use compact view instead."); msg.channel.createMessage("Too many cases for expanded view. Please use compact view instead.");
return; return;