From a8d24798e6c6c5ec535106c27f7466cc4ef20d3c Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 14 Jan 2016 17:23:04 +0000 Subject: [PATCH] oooooooops... let's pretend nobody saw this --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 7bbb99f9b..a20c9de9c 100644 --- a/lib/client.js +++ b/lib/client.js @@ -197,7 +197,7 @@ MatrixClient.prototype.getIdentityServerUrl = function() { */ MatrixClient.prototype.getDomain = function() { if (this.credentials && this.credentials.userId) { - return this.credentials.userId.split(':')[0]; + return this.credentials.userId.replace(/^.*?:/, ''); } return null; };