mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
FIX: Allow emoji at the beginning of a line without a paragraph break.
This commit is contained in:
@ -42,7 +42,7 @@
|
|||||||
var lastToken = prev[prev.length-1];
|
var lastToken = prev[prev.length-1];
|
||||||
if (lastToken && lastToken.charAt) {
|
if (lastToken && lastToken.charAt) {
|
||||||
var lastChar = lastToken.charAt(lastToken.length-1);
|
var lastChar = lastToken.charAt(lastToken.length-1);
|
||||||
if (lastChar !== ' ') return false;
|
if (lastChar !== ' ' && lastChar !== "\n") return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user