Skip to content

Commit 5c3f03a

Browse files
authored
fix: Update zone name discovery to ignore icon metadata (#52)
Signed-off-by: Gerard Hickey <[email protected]>
1 parent cca7c79 commit 5c3f03a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/ISSUE_TEMPLATE/Bug Report.yml

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ body:
3030
- v2.0 - v2.8
3131
- v2.9
3232
- v2.10
33+
- v2.12.0
3334
- development build (include version in what happened)
3435
default: 0
3536
validations:

meshchatlib.lua

+4-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ function zone_name()
8989
if nixio.fs.access(servfile) then
9090
for line in io.lines(servfile)
9191
do
92-
local zone = line:match("^(.*)|.*|.*|.*|.*|meshchat$")
92+
-- this will match the new service names with the icon metadata
93+
-- in this case we are using a space or a pipe to terminate
94+
-- the service name
95+
local zone = line:match("^(.-)[%s%|].*|meshchat$")
9396
if zone then
9497
return zone
9598
end

0 commit comments

Comments
 (0)