We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e4f22b commit 6c24297Copy full SHA for 6c24297
1 file changed
lib/matrix_sdk/mxid.rb
@@ -12,7 +12,7 @@ def initialize(identifier)
12
13
# TODO: Community-as-a-Room / Profile-as-a-Room, in case they're going for room aliases
14
@sigil = identifier[0]
15
- @localpart, @domain, @port = identifier[1..-1].split(':') # rubocop:disable Style/SlicingWithRange # Keep support for slightly older Rubies
+ @localpart, @domain, @port = identifier[1..].split(':')
16
@port = @port.to_i if @port
17
18
raise ArgumentError, 'Identifier is not a valid MXID' unless valid?
0 commit comments