From 28b85bb226be1cc32bb4cc651d6df09c184a9964 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Mon, 30 Nov 2015 01:12:41 +0000 Subject: [PATCH] remove unnecessary zalgo hacks --- src/components/views/rooms/MemberTile.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/components/views/rooms/MemberTile.js b/src/components/views/rooms/MemberTile.js index 5adde400a6..3d3d23e1e8 100644 --- a/src/components/views/rooms/MemberTile.js +++ b/src/components/views/rooms/MemberTile.js @@ -23,10 +23,6 @@ var sdk = require('../../../index'); var dis = require('../../../dispatcher'); var Modal = require("../../../Modal"); -// The Lato WOFF doesn't include sensible combining diacritics, so Chrome chokes -// on rendering them. Revert to Arial when this happens, which on OSX works at least. -var zalgo = /[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/; - module.exports = React.createClass({ displayName: 'MemberTile', @@ -168,11 +164,6 @@ module.exports = React.createClass({ // if (isMyUser) name += " (me)"; // this does nothing other than introduce line wrapping and pain //var leave = isMyUser ? : null; - var nameClass = "mx_MemberTile_name"; - if (zalgo.test(name)) { - nameClass += " mx_MemberTile_zalgo"; - } - var nameEl; if (this.state.hover) { var presence; @@ -194,7 +185,7 @@ module.exports = React.createClass({ } else { nameEl = -
+
{ name }
}