aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2019-02-23 15:00:40 +0000
committerSolderpunk <solderpunk@sdf.org>2019-02-23 15:00:40 +0000
commit7924cf5b343362c3aba06e3639cda650b35957e5 (patch)
treede7fea3d1c8cc863ffb6c4d344b35e7cf6f58878
parentCheck for problematic characters in board names. (diff)
Permit board names to consist of alphanumeric characters, not just letters.
-rwxr-xr-xtelem.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/telem.lua b/telem.lua
index 8d4a343..cba014b 100755
--- a/telem.lua
+++ b/telem.lua
@@ -174,7 +174,7 @@ function load_scan_times()
local f, err = io.open(scanfile, "r")
if f == nil then return end
for line in f:lines() do
- local _, _, board, scantime = string.find(line, "(%a+):(%d+)")
+ local _, _, board, scantime = string.find(line, "(%w+):(%d+)")
if boards_by_name[board] then
boards_by_name[board].last_scanned = tonumber(scantime)
end