mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.json: Fix for single-line comments (thanks Norbert Kiesel)
This commit is contained in:
parent
7eae765921
commit
383eb2f3bf
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ function json.decode(json)
|
|||
skipwhitespace();
|
||||
if ch == "/" and peek == "*" then
|
||||
skipstarcomment();
|
||||
elseif ch == "/" and peek == "*" then
|
||||
elseif ch == "/" and peek == "/" then
|
||||
skiplinecomment();
|
||||
else
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue