Fix get subdomain function

This commit is contained in:
Andrei Bora 2020-11-11 15:49:31 +02:00 committed by Дамян Минков
parent 9379bb3c5b
commit c4ef7d8601
1 changed files with 1 additions and 1 deletions

View File

@ -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("^%[([^%]]+)%](.+)$");