Allowed @mentions to follow any non-alphanumeric character instead of just whitespace

Этот коммит содержится в:
hmhealey
2015-11-04 09:57:02 -05:00
родитель 1a4584f3da
Коммит f0823ba5d8

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

@@ -166,7 +166,7 @@ function autolinkAtMentions(text, tokens) {
}
let output = text;
output = output.replace(/(^|\s)(@([a-z0-9.\-_]*))/gi, replaceAtMentionWithToken);
output = output.replace(/(^|[^a-z0-9])(@([a-z0-9.\-_]*))/gi, replaceAtMentionWithToken);
return output;
}