Fix commands activating anywhere in the input (#156)
authorSamuel Dionne-Riel <samuel@dionne-riel.com>
Sun, 7 Nov 2021 04:32:50 +0000 (00:32 -0400)
committerGitHub <noreply@github.com>
Sun, 7 Nov 2021 04:32:50 +0000 (10:02 +0530)
commit3776e323641c7231cd024a845a5bf1175c346a0f
tree6fb018bf441ae941bba68dc1b98d9bd568d5d918
parentfb5a54dd17ae9bab2d7ce645424f7a873edea44c
Fix commands activating anywhere in the input (#156)

* Fix commands activating anywhere in the input

Writing `The command to leave a channel is /leave` might have had "fun"
consequences for users.

Fixes #155

* Fix go-to commands activating anywhere in the input

While less obtrusive than `/` commands activating anywhere, it seems
logical to only activate completion of those when at the beginning of
the input.
src/app/organisms/room/RoomViewInput.jsx