Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/28236/head
Michael Telatynski 2024-10-18 13:28:44 +01:00
parent 44b23d2191
commit 0105f566c9
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D
1 changed files with 1 additions and 1 deletions

View File

@ -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;