bliss

KISS in Lua
git clone git://bvnf.space/bliss.git
Log | Files | Refs | README | LICENSE

commit 7c13ce9b372c8464ee0b3da478b3065dd59518d0
parent 3fc07afa1c88d89179d1015f93a69575f5f0522c
Author: phoebos <ben@bvnf.space>
Date:   Tue, 18 Jul 2023 02:18:42 +0100

utils.split: handle nil strings

Diffstat:
Mbliss/utils.lua | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/bliss/utils.lua b/bliss/utils.lua @@ -123,6 +123,7 @@ function trap_off(env) end function split(s, sep) + if not s then return {} end local c = {} for a in string.gmatch(s, "[^%s"..sep.."]+") do table.insert(c, a)