Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 997103d

Browse files
committed
[Yaml] dump escape sequences when possible
1 parent 3265ed4 commit 997103d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Yaml/Inline.php

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

689689
private static function isBinaryString($value)
690690
{
691-
return !preg_match('//u', $value) || preg_match('/[^\x09-\x0d\x20-\xff]/', $value);
691+
return !preg_match('//u', $value) || preg_match('/[^\x00\x07-\x0d\x1B\x20-\xff]/', $value);
692692
}
693693

694694
/**

0 commit comments

Comments
 (0)