From 0ca1fd3cf3696ae154ab60b912d77e5573b914d9 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Thu, 27 Aug 2009 12:43:12 +0200 Subject: Match punctuation characters in wifi SSID. --- wifi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wifi.lua b/wifi.lua index 11d9b84..966435f 100644 --- a/wifi.lua +++ b/wifi.lua @@ -43,7 +43,7 @@ local function worker(format, iface) -- The 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]+[%s]*[%w]*]*)"') 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 -- cgit v1.2.3