Fixed @mentions containing uppercase characters

Этот коммит содержится в:
hmhealey
2015-09-04 12:34:55 -04:00
родитель f186572028
Коммит 45b034053a

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

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