summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richardipsum@fastmail.co.uk>2018-10-12 22:11:57 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2018-10-21 13:36:57 +0100
commit64dcca437867ece711b215f3d5a609d04134a93d (patch)
tree63dfcdbd84c9e2c849e10ca971937961c1f7572b
parent6b1d582a83c0a51d74266e635348eb64c03e6969 (diff)
downloadluxio-64dcca437867ece711b215f3d5a609d04134a93d.tar.gz
Fix regex in sio.tomode
-rw-r--r--luxio/simple.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/luxio/simple.lua b/luxio/simple.lua
index f2ef5ba..2d117ad 100644
--- a/luxio/simple.lua
+++ b/luxio/simple.lua
@@ -717,7 +717,7 @@ local function sio_mode_flags(f)
error("string describing access mode expected")
end
- if f:match "0?[0-7][0-7][0-7][0-7]" then
+ if f:match "0?[0-7][0-7][0-7]" then
-- octal number as a string
return tonumber(f, 8)
end