Update commands (#2325)
* kick-ban all members by servername * Add command for deleting multiple messages * remove console logs and improve ban command description * improve commands description * add server acl command * fix code highlight not working after editing in dev tools
This commit is contained in:
@@ -125,3 +125,9 @@ export const suffixRename = (name: string, validator: (newName: string) => boole
|
||||
};
|
||||
|
||||
export const replaceSpaceWithDash = (str: string): string => str.replace(/ /g, '-');
|
||||
|
||||
export const splitWithSpace = (content: string): string[] => {
|
||||
const trimmedContent = content.trim();
|
||||
if (trimmedContent === '') return [];
|
||||
return trimmedContent.split(' ');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user