diff options
author | Amir Mohammad Saied <amirsaied@gmail.com> | 2010-10-12 11:08:35 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-10-12 14:14:49 +0200 |
commit | 49b0913b046bcec4869c0d3e51faf7a4f2bfcd62 (patch) | |
tree | b45590ee1244c2198da12696097b16222ec0cfad /widgets/wifi.lua | |
parent | 932bd8dfcbacecf8fe5b07abd50eced018c50355 (diff) | |
download | vicious-legacy-49b0913b046bcec4869c0d3e51faf7a4f2bfcd62.tar.xz |
wifi: improved SSID regular expression
Current regular expression only matches two words ESSIDs, the other day
I was at a friend's home with SSID "The Dark Tower". I was getting N/A.
Signed-off-by: Amir Mohammad Saied <amirsaied@gmail.com>
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Diffstat (limited to 'widgets/wifi.lua')
-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 |