Skip to content

Commit

Permalink
fix: Update zone name discovery to ignore icon metadata (#52)
Browse files Browse the repository at this point in the history
Signed-off-by: Gerard Hickey <[email protected]>
  • Loading branch information
hickey committed Aug 19, 2024
1 parent cca7c79 commit 86eb48e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion meshchatlib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86eb48e

Please sign in to comment.