diff options
-rw-r--r-- | utf8.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -100,6 +100,10 @@ end -- instead of bytes function utf8sub (s, i, j) j = j or -1 + + if i == nil then + return "" + end local pos = 1 local bytes = string.len(s) |