模块:StringUtils:修订间差异

建立内容为“local p = {} function p.split_or_empty(value, sep) if value and #value > 0 then return mw.text.split(value, sep) else return {} end e…”的新页面
 
无编辑摘要
第6行: 第6行:
     else
     else
         return {}
         return {}
    end
end
function p.assert_not_empty(s)
    if s and #s == 0 then
        return nil
    else
        return s
     end
     end
end
end


return p
return p