Этот коммит содержится в:
Pat Lathem
2015-10-24 18:54:01 -05:00
родитель 0c04535599
Коммит 80e0a8db1d

Просмотреть файл

@@ -160,11 +160,11 @@ function autolinkAtMentions(text, tokens) {
for (let c = usernameLower.length; c > 0; c--) { for (let c = usernameLower.length; c > 0; c--) {
if (isPunctuation(usernameLower[c - 1])) { if (isPunctuation(usernameLower[c - 1])) {
usernameLower = usernameLower.substring(0, c); usernameLower = usernameLower.substring(0, c - 1);
if (mentionExists(usernameLower)) { if (mentionExists(usernameLower)) {
const extraText = originalUsername.substr(c); const extraText = originalUsername.substr(c - 1);
const alias = addToken(usernameLower, mention, extraText); const alias = addToken(usernameLower, '@' + usernameLower, extraText);
return prefix + alias; return prefix + alias;
} }
} else { } else {