FIX: Allow emoji to be bounded by non-word characters in preview.

This commit is contained in:
Guo Xiang Tan 2015-08-26 16:27:54 +08:00
parent f3e3cbe3b2
commit a376bc0901

View File

@ -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;