mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 16:35:35 +08:00
Revert "Revert "FIX: Don't allow mid word emoticons""
This reverts commit efaa066a171623fa383f3d87a6692b046c8bf581.
This commit is contained in:
parent
89a3311bf5
commit
512746b436
@ -64,6 +64,14 @@
|
||||
firstSpace = text.search(/\s/),
|
||||
contents;
|
||||
|
||||
if (prev && prev.length) {
|
||||
var lastToken = prev[prev.length-1];
|
||||
if (lastToken && lastToken.charAt) {
|
||||
var lastChar = lastToken.charAt(lastToken.length-1);
|
||||
if (lastChar !== ' ') return;
|
||||
}
|
||||
}
|
||||
|
||||
// If there is no trailing colon, check our translations that begin with colons
|
||||
if (endPos === -1 || (firstSpace !== -1 && endPos > firstSpace)) {
|
||||
translationColonRegexp.lastIndex = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user