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 authored Aug 20, 2024
1 parent cca7c79 commit 5c3f03a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/Bug Report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
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 5c3f03a

Please sign in to comment.