summaryrefslogtreecommitdiff
path: root/script/config/loader.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/config/loader.lua')
-rw-r--r--script/config/loader.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/config/loader.lua b/script/config/loader.lua
index 5cc7139f..8a53d073 100644
--- a/script/config/loader.lua
+++ b/script/config/loader.lua
@@ -30,7 +30,7 @@ function m.loadRCConfig(uri, filename)
scp:set('lastRCConfig', nil)
return nil
end
- local suc, res = pcall(jsonc.decode, buf)
+ local suc, res = pcall(jsonc.decode_jsonc, buf)
if not suc then
errorMessage(lang.script('CONFIG_LOAD_ERROR', res))
return scp:get('lastRCConfig')
@@ -61,7 +61,7 @@ function m.loadLocalConfig(uri, filename)
end
local firstChar = buf:match '%S'
if firstChar == '{' then
- local suc, res = pcall(jsonc.decode, buf)
+ local suc, res = pcall(jsonc.decode_jsonc, buf)
if not suc then
errorMessage(lang.script('CONFIG_LOAD_ERROR', res))
return scp:get('lastLocalConfig')