[Yaml] dump escape sequences when possible

This commit is contained in:
Christian Flothmann 2017-03-07 17:47:02 +01:00
parent 3265ed4a66
commit 997103d931

View File

@ -688,7 +688,7 @@ class Inline
private static function isBinaryString($value) 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);
} }
/** /**