diff --git a/.github/ISSUE_TEMPLATE/Bug Report.yml b/.github/ISSUE_TEMPLATE/Bug Report.yml index 3556625..5f5956c 100644 --- a/.github/ISSUE_TEMPLATE/Bug Report.yml +++ b/.github/ISSUE_TEMPLATE/Bug Report.yml @@ -30,6 +30,7 @@ body: - v2.0 - v2.8 - v2.9 - v2.10 + - v2.12.0 - development build (include version in what happened) default: 0 validations: diff --git a/meshchatlib.lua b/meshchatlib.lua index f409ea2..e9a4492 100755 --- a/meshchatlib.lua +++ b/meshchatlib.lua @@ -89,7 +89,10 @@ function zone_name() if nixio.fs.access(servfile) then for line in io.lines(servfile) do - local zone = line:match("^(.*)|.*|.*|.*|.*|meshchat$") + -- this will match the new service names with the icon metadata + -- in this case we are using a space or a pipe to terminate + -- the service name + local zone = line:match("^(.-)[%s%|].*|meshchat$") if zone then return zone end