diff options
-rw-r--r-- | widgets/wifi.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/wifi.lua b/widgets/wifi.lua index 2e400bc..5801bd5 100644 --- a/widgets/wifi.lua +++ b/widgets/wifi.lua @@ -55,7 +55,7 @@ local function worker(format, warg) -- Output differs from system to system, some stats can be -- separated by =, and not all drivers report all stats winfo["{ssid}"] = -- SSID can have almost anything in it - string.match(iw, 'ESSID[=:]"([%w%p]+[%s]*[%w%p]*]*)"') or winfo["{ssid}"] + string.match(iw, 'ESSID[=:]"([%w%p]+[%s%w%p]*]*)"') or winfo["{ssid}"] winfo["{mode}"] = -- Modes are simple, but also match the "-" in Ad-Hoc string.match(iw, "Mode[=:]([%w%-]*)") or winfo["{mode}"] winfo["{chan}"] = -- Channels are plain digits |