[Yaml] dump escape sequences when possible
This commit is contained in:
parent
3265ed4a66
commit
997103d931
@ -688,7 +688,7 @@ class Inline
|
||||
|
||||
private static function isBinaryString($value)
|
||||
{
|
||||
return !preg_match('//u', $value) || preg_match('/[^\x09-\x0d\x20-\xff]/', $value);
|
||||
return !preg_match('//u', $value) || preg_match('/[^\x00\x07-\x0d\x1B\x20-\xff]/', $value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user