Raymond Hill
7 years ago
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with
4 additions and
3 deletions
-
src/js/matrix.js
|
@ -685,9 +685,8 @@ Matrix.prototype.fromLine = function(line) { |
|
|
let field0 = fields[0]; |
|
|
let field0 = fields[0]; |
|
|
|
|
|
|
|
|
// Switches
|
|
|
// Switches
|
|
|
let pos = field0.indexOf(':'); |
|
|
|
|
|
if ( pos !== -1 ) { |
|
|
|
|
|
let switchName = field0.slice(0, pos); |
|
|
|
|
|
|
|
|
if ( this.reSwitchRule.test(field0) ) { |
|
|
|
|
|
let switchName = field0.slice(0, -1); |
|
|
let srcHostname = punycode.toASCII(fields[1]); |
|
|
let srcHostname = punycode.toASCII(fields[1]); |
|
|
let state = fields[2]; |
|
|
let state = fields[2]; |
|
|
if ( |
|
|
if ( |
|
@ -736,6 +735,8 @@ Matrix.prototype.fromLine = function(line) { |
|
|
return true; |
|
|
return true; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
Matrix.prototype.reSwitchRule = /^[0-9a-z-]+:$/; |
|
|
|
|
|
|
|
|
/******************************************************************************/ |
|
|
/******************************************************************************/ |
|
|
|
|
|
|
|
|
Matrix.prototype.toSelfie = function() { |
|
|
Matrix.prototype.toSelfie = function() { |
|
|