Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
remove // support as it never worked
Browse files Browse the repository at this point in the history
  • Loading branch information
ara4n committed Jul 8, 2018
1 parent 47b6099 commit 031c866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SlashCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ export function processCommandInput(roomId, input) {
// trim any trailing whitespace, as it can confuse the parser for
// IRC-style commands
input = input.replace(/\s+$/, '');
if (input[0] !== '/' || input[1] === '/') return null; // not a command
if (input[0] !== '/') return null; // not a command

const bits = input.match(/^(\S+?)( +((.|\n)*))?$/);
let cmd;
Expand Down

0 comments on commit 031c866

Please sign in to comment.