diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-08-27 12:46:08 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-08-27 12:46:08 +0200 |
commit | 13527a38e8136bae83dc75f24e85f5fd45d4fbf0 (patch) | |
tree | db08e4bc2a0364c0dfdfb31de4030e060b1f3f37 | |
parent | 0ca1fd3cf3696ae154ab60b912d77e5573b914d9 (diff) | |
download | vicious-legacy-13527a38e8136bae83dc75f24e85f5fd45d4fbf0.tar.xz |
Match all punctuation chars in fs partitions and mount points.
With some recent commits we are matching a good number of custom
characters. Instead of waiting for another one that breaks it, just
match all punctuation characters. The regexp is pretty big and some
simplification is also welcomed.
-rw-r--r-- | fs.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -27,7 +27,7 @@ local function worker(format) -- table for each mount point with gmatch local size, used, avail, usep, mount = -- Instead match all at once, including network file systems - line:match("^[/%w:%.-]+[%s]+([%d%.]+)[%a]?[%s]+([%d%.]+)[%a]?[%s]+([%d%.]+)[%a]?[%s]+([%d]+)%%[%s]+([/%w:%.-]+)$") + line:match("^[%w%p]+[%s]+([%d%.]+)[%a]?[%s]+([%d%.]+)[%a]?[%s]+([%d%.]+)[%a]?[%s]+([%d]+)%%[%s]+([%w%p]+)$") fs_info["{"..mount.." size}"] = size fs_info["{"..mount.." used}"] = used |