Nutze wieder dkjson, sorry!
This commit is contained in:
parent
74ab78322d
commit
29bf5c84fe
@ -29,7 +29,7 @@ Du benötigst **Lua 5.2+**, eine aktive **Redis-Instanz** und die folgenden **Lu
|
|||||||
* luasocket
|
* luasocket
|
||||||
* luasec
|
* luasec
|
||||||
* multipart-post
|
* multipart-post
|
||||||
* lua-cjson
|
* dkjson
|
||||||
* lpeg
|
* lpeg
|
||||||
* redis-lua
|
* redis-lua
|
||||||
* fakeredis
|
* fakeredis
|
||||||
|
@ -8,7 +8,8 @@ http = require('socket.http')
|
|||||||
https = require('ssl.https')
|
https = require('ssl.https')
|
||||||
socket = require('socket')
|
socket = require('socket')
|
||||||
URL = require('socket.url')
|
URL = require('socket.url')
|
||||||
json = require "cjson"
|
json = require("dkjson")
|
||||||
|
pcall(json.use_lpeg)
|
||||||
serpent = require("serpent")
|
serpent = require("serpent")
|
||||||
bindings = require('otouto.bindings')
|
bindings = require('otouto.bindings')
|
||||||
redis = (loadfile "./otouto/redis.lua")()
|
redis = (loadfile "./otouto/redis.lua")()
|
||||||
@ -259,7 +260,7 @@ function string:isempty()
|
|||||||
return self == nil or self == ''
|
return self == nil or self == ''
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Retruns true if the string is blank
|
-- Returns true if the string is blank
|
||||||
function string:isblank()
|
function string:isblank()
|
||||||
self = self:trim()
|
self = self:trim()
|
||||||
return self:isempty()
|
return self:isempty()
|
||||||
|
Reference in New Issue
Block a user