Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
44b23d2191
commit
0105f566c9
1 changed files with 1 additions and 1 deletions
|
@ -994,7 +994,7 @@ Commands.forEach((cmd) => {
|
|||
export function parseCommandString(input: string): { cmd?: string; args?: string } {
|
||||
// trim any trailing whitespace, as it can confuse the parser for IRC-style commands
|
||||
input = input.trimEnd();
|
||||
if (input.startsWith("/")) return {}; // not a command
|
||||
if (!input.startsWith("/")) return {}; // not a command
|
||||
|
||||
const bits = input.match(/^(\S+?)(?:[ \n]+((.|\n)*))?$/);
|
||||
let cmd: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue