Skip to content

Commit

Permalink
Add docstring for static var
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Jun 27, 2019
1 parent 9dd51cc commit cab087b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/models/users/matrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ MatrixUser.prototype.escapeUserId = function() {
this.userId = `@${this.localpart}:${this.host}`;
};

/**
* @static
* This is a global variable to modify the default escaping behaviour of MatrixUser.
*/
MatrixUser.ESCAPE_DEFAULT = true;


Expand Down

0 comments on commit cab087b

Please sign in to comment.