diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-08-27 12:43:12 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-08-27 12:43:12 +0200 |
commit | 0ca1fd3cf3696ae154ab60b912d77e5573b914d9 (patch) | |
tree | 40a8d726544c303e43818a2e64eb1ce680af9e0a /wifi.lua | |
parent | cb36f742de020c75a885cdd1507f600d7fac29af (diff) | |
download | vicious-legacy-0ca1fd3cf3696ae154ab60b912d77e5573b914d9.tar.xz |
Match punctuation characters in wifi SSID.
Diffstat (limited to 'wifi.lua')
-rw-r--r-- | wifi.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |