mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-05 22:03:50 +03:00
chat: require and remove leading space for /me
Closes #2834. Previously, starting a message with '/me' removed itself, retaining the space between it and the message itself; it also allowed "/memessages" to be processed as /me messages.
This commit is contained in:
parent
03d80b8c63
commit
40378d2b79
@ -151,8 +151,8 @@ export class ChatInput extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getLetterType(letter) {
|
getLetterType(letter) {
|
||||||
if (letter.startsWith('/me')) {
|
if (letter.startsWith('/me ')) {
|
||||||
letter = letter.slice(3);
|
letter = letter.slice(4);
|
||||||
// remove insignificant leading whitespace.
|
// remove insignificant leading whitespace.
|
||||||
// aces might be relevant to style.
|
// aces might be relevant to style.
|
||||||
while (letter[0] === '\n') {
|
while (letter[0] === '\n') {
|
||||||
|
Loading…
Reference in New Issue
Block a user