Skip to content

Commit d1abb47

Browse files
Merge branch '3.2'
* 3.2: [Yaml] dump escape sequences when possible
2 parents e1f5aff + 093e416 commit d1abb47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Inline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ public static function evaluateBinaryScalar($scalar)
764764

765765
private static function isBinaryString($value)
766766
{
767-
return !preg_match('//u', $value) || preg_match('/[^\x09-\x0d\x20-\xff]/', $value);
767+
return !preg_match('//u', $value) || preg_match('/[^\x00\x07-\x0d\x1B\x20-\xff]/', $value);
768768
}
769769

770770
/**

0 commit comments

Comments
 (0)