remove // support, as it never worked
if you want to escape a /, do it with \/ or just precede with a space
This commit is contained in:
parent
4c3588d260
commit
79f7c5d6ab
2 changed files with 2 additions and 2 deletions
|
@ -731,7 +731,7 @@ export default class MessageComposerInput extends React.Component {
|
|||
const firstGrandChild = firstChild && firstChild.nodes.get(0);
|
||||
if (firstChild && firstGrandChild &&
|
||||
firstChild.object === 'block' && firstGrandChild.object === 'text' &&
|
||||
firstGrandChild.text[0] === '/' && firstGrandChild.text[1] !== '/')
|
||||
firstGrandChild.text[0] === '/')
|
||||
{
|
||||
commandText = this.plainWithIdPills.serialize(editorState);
|
||||
cmd = SlashCommands.processInput(this.props.room.roomId, commandText);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue