mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 05:52:49 +08:00
FIX: Allow emoji to be bounded by non-word characters in preview.
This commit is contained in:
parent
f3e3cbe3b2
commit
a376bc0901
|
@ -113,7 +113,7 @@ function checkPrev(prev) {
|
|||
var lastToken = prev[prev.length-1];
|
||||
if (lastToken && lastToken.charAt) {
|
||||
var lastChar = lastToken.charAt(lastToken.length-1);
|
||||
if (!/\s/.test(lastChar)) return false;
|
||||
if (!/\W/.test(lastChar)) return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user