apprt/gtk: fix valid id check

This commit is contained in:
Mitchell Hashimoto
2023-11-06 08:54:23 -08:00
parent efe9721c98
commit 364a14d7a2

View File

@ -509,7 +509,7 @@ fn isValidAppId(app_id: [:0]const u8) bool {
switch (char) {
'a'...'z', 'A'...'Z', '0'...'9', '_', '-' => {},
'.' => hasDot = true,
0 => return false,
else => return false,
}
}
if (!hasDot) return false;