mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Allow emoji to be bounded by non-word characters in preview.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user