Fix get subdomain function
This commit is contained in:
parent
9379bb3c5b
commit
c4ef7d8601
|
@ -239,7 +239,7 @@ end
|
|||
function extract_subdomain(room_node)
|
||||
-- optimization, skip matching if there is no subdomain, no [subdomain] part in the beginning of the node
|
||||
if not starts_with(room_node, '[') then
|
||||
return room_node;
|
||||
return nil,room_node;
|
||||
end
|
||||
|
||||
return room_node:match("^%[([^%]]+)%](.+)$");
|
||||
|
|
Loading…
Reference in New Issue