We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fc8848 commit 3f521daCopy full SHA for 3f521da
hjson-lua-0.2.0-1.rockspec
@@ -1,5 +1,5 @@
1
package = "hjson-lua"
2
-version = "0.2.0-1"
+version = "0.3.0-1"
3
source = {
4
url = "git://github.com/hjson/hjson-lua.git",
5
}
hjson/decoder.lua
@@ -83,7 +83,7 @@ function HjsonDecoder:new(options)
83
if type(options.strict) ~= "boolean" then
84
options.strict = true
85
end
86
- if type(options.max_depth) ~= "number" then
+ if type(options.max_depth) ~= "number" or options.max_depth < 1 then
87
options.max_depth = DEFAULT_MAX_DEPTH
88
89
0 commit comments