Skip to content

Commit 9fc8848

Browse files
committed
restore backward compatibility layer
1 parent d165cfe commit 9fc8848

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hjson.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ local function preprocess_encode_options(options)
3333
return result
3434
end
3535

36-
if options.skip_keys == true then
36+
if options.skipKeys == true then
3737
print("skipkeys is deprecated, use skip_keys instead")
3838
options.skip_keys = true
3939
end
4040

41-
if options.sort_keys == true then
41+
if options.sortKeys == true then
4242
print("sortKeys is deprecated, use sort_keys instead")
4343
options.sort_keys = true
4444
end
4545

46-
if options.invalid_objects_as_type == true then
46+
if options.invalidObjectsAsType == true then
4747
print("invalidObjectsAsType is deprecated, use invalid_objects_as_type instead")
4848
options.invalid_objects_as_type = true
4949
end

0 commit comments

Comments
 (0)