Fixed relaxed parser wrt "" input

This commit is contained in:
Peter Conrad 2018-03-06 22:47:59 +01:00 committed by Peter Conrad
parent b4f3947cb1
commit 4bb8bf7832

View file

@ -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 )