Fixed relaxed parser wrt "" input
This commit is contained in:
parent
b4f3947cb1
commit
4bb8bf7832
1 changed files with 9 additions and 2 deletions
|
|
@ -104,8 +104,15 @@ namespace fc { namespace json_relaxed
|
||||||
if( in.peek() == q )
|
if( in.peek() == q )
|
||||||
{
|
{
|
||||||
in.get();
|
in.get();
|
||||||
if( in.peek() != q )
|
try
|
||||||
return fc::string();
|
{
|
||||||
|
if( in.peek() != q )
|
||||||
|
return fc::string();
|
||||||
|
}
|
||||||
|
catch( const fc::eof_exception& e )
|
||||||
|
{
|
||||||
|
return fc::string();
|
||||||
|
}
|
||||||
|
|
||||||
// triple quote processing
|
// triple quote processing
|
||||||
if( strict )
|
if( strict )
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue