fix split: "undefined method `b' for nil:NilClass"

Denver Gingerich created

Change summary

sgx-catapult.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

sgx-catapult.rb 🔗

@@ -1095,7 +1095,7 @@ class WebhookHandler < Goliath::API
 
 			msg = Blather::Stanza::Message.new(bare_jid, text)
 		else # per prior switch, this is:  params['direction'] == 'out'
-			tag_parts = params['tag'].split(' ', 2)
+			tag_parts = params['tag'].split(/ /, 2)
 			id = WEBrick::HTTPUtils.unescape(tag_parts[0])
 			resourcepart = WEBrick::HTTPUtils.unescape(tag_parts[1])