Fix escaping in regex parsing buffer fullName

This commit is contained in:
Lorenz Hübschle-Schneider 2014-11-02 19:10:45 +01:00
parent 3eba4ff227
commit cd124cf5ff
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ models.service('models', ['$rootScope', '$filter', function($rootScope, $filter)
var notification = 0; var notification = 0;
var unread = 0; var unread = 0;
var lastSeen = -1; var lastSeen = -1;
var serverSortKey = fullName.replace(/^irc.server.(\w+)/, "irc.$1"); var serverSortKey = fullName.replace(/^irc\.server\.(\w+)/, "irc.$1");
var type = message.local_variables.type; var type = message.local_variables.type;
var indent = (['channel', 'private'].indexOf(type) >= 0); var indent = (['channel', 'private'].indexOf(type) >= 0);