aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-08-27 12:43:12 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-24 15:16:03 +0200
commit9f2761eeb01004ce96c45e000ef907778c51c79f (patch)
treef1921302bfa1b1ba5407a40117fa046e2937b896
parent1b4e28c036d005415b62c8159c8b42b3fedc5162 (diff)
downloadvicious-legacy-9f2761eeb01004ce96c45e000ef907778c51c79f.tar.xz
Match punctuation characters in wifi SSID.
-rw-r--r--wifi.lua2
1 files changed, 1 insertions, 1 deletions
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