Merge pull request #605 from hmhealey/uppercasementions

MM-2113 Fixed @mentions being highlighted for all users instead of just the user being mentioned
Этот коммит содержится в:
Joram Wilander
2015-09-05 19:42:14 -04:00
родитель 8f282d12f6 45b034053a
Коммит 798d5a8c02

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

@@ -498,7 +498,7 @@ export function textToJsx(textin, options) {
// do both a non-case sensitive and case senstive check
let mClass = '';
if (('@' + name.toLowerCase()) !== -1 || implicitKeywords.indexOf('@' + name) !== -1) {
if (implicitKeywords.indexOf('@' + name.toLowerCase()) !== -1 || implicitKeywords.indexOf('@' + name) !== -1) {
mClass = mentionClass;
}