the `irq` plugin does not show the right data if the interrupt name is only numeric
Signed-off-by: Ronny Kotzschmar <ro.ok@me.com>
(cherry picked from commit
dc2570305383a1014b39b44471c0b8c491e23026)
Fixes #5719
if not nopad then pad = "\t" end
if s then
- if s:find("[^%d]") or n == "Port" then
- if not s:find("[^%w]") and n ~= "Port" then
+ if s:find("[^%d]") or n == "Port" or n == "Irq" then
+ if not s:find("[^%w]") and n ~= "Port" and n ~= "Irq" then
str = pad .. n .. " " .. luci.util.trim(s)
else
str = pad .. n .. ' "' .. luci.util.trim(s) .. '"'