diff options
author | Florian Zeitz <florob@babelmonkeys.de> | 2013-08-09 17:48:21 +0200 |
---|---|---|
committer | Florian Zeitz <florob@babelmonkeys.de> | 2013-08-09 17:48:21 +0200 |
commit | 1d833bb80779ed9c9e1d7ec6c7fab231ebf48182 (patch) | |
tree | 8031ff6fd0e32a78a157f8e6542a954e7e634c5d /util/json.lua | |
parent | 96ec63e3c3bbd7e5f6056a5eeeaaa292b4b4da8d (diff) | |
download | prosody-1d833bb80779ed9c9e1d7ec6c7fab231ebf48182.tar.gz prosody-1d833bb80779ed9c9e1d7ec6c7fab231ebf48182.zip |
Remove all trailing whitespace
Diffstat (limited to 'util/json.lua')
-rw-r--r-- | util/json.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/json.lua b/util/json.lua index 82ebcc43..a8a58afc 100644 --- a/util/json.lua +++ b/util/json.lua @@ -348,9 +348,9 @@ local first_escape = { function json.decode(json) json = json:gsub("\\.", first_escape) -- get rid of all escapes except \uXXXX, making string parsing much simpler --:gsub("[\r\n]", "\t"); -- \r\n\t are equivalent, we care about none of them, and none of them can be in strings - + -- TODO do encoding verification - + local val, index = _readvalue(json, 1); if val == nil then return val, index; end if json:find("[^ \t\r\n]", index) then return nil, "garbage at eof"; end |