Skip to content

Commit 03df6a0

Browse files
committed
fixed decode & updated copyright
1 parent bffd009 commit 03df6a0

6 files changed

Lines changed: 8 additions & 6 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 V (cryon.io)
3+
Copyright (c) 2023 V (alis.is)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

hjson.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- MIT License - Copyright (c) 2021 V (cryon.io)
1+
-- MIT License - Copyright (c) 2023 V (alis.is)
22
local decoder = require "hjson.decoder"
33
local encoder = require "hjson.encoder"
44
local encoderH = require "hjson.encoderH"
@@ -86,4 +86,5 @@ local hjson = {
8686
parse = decode
8787
}
8888

89+
print"loaded"
8990
return hjson

hjson/decoder.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- MIT License - Copyright (c) 2021 V (cryon.io)
1+
-- MIT License - Copyright (c) 2023 V (alis.is)
22

33
local WHITESPACE = " \t\n\r"
44
local PUNCTUATOR = "{}[],:"
@@ -206,6 +206,7 @@ function HjsonDecoder:new(strict, object_hook, object_pairs_hook)
206206
end
207207
end
208208
chunks = chunks .. chars
209+
return true
209210
end
210211
while scan_string() do end
211212
return chunks, _end

hjson/encoder.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- MIT License - Copyright (c) 2021 V (cryon.io)
1+
-- MIT License - Copyright (c) 2023 V (alis.is)
22
local escape_char_map = {
33
["\\"] = "\\\\",
44
['"'] = '\\"',

hjson/encoderH.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- MIT License - Copyright (c) 2021 V (cryon.io)
1+
-- MIT License - Copyright (c) 2023 V (alis.is)
22
local escape_char_map = {
33
["\\"] = "\\\\",
44
['"'] = '\\"',

test/test.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- MIT License - Copyright (c) 2021 V (cryon.io)
1+
-- MIT License - Copyright (c) 2023 V (alis.is)
22
package.preload["hjson"] = nil --- remove default hjson
33
package.path = package.path .. ";./hjson/?.lua"
44

0 commit comments

Comments
 (0)