update for version 1.0.2
This commit is contained in:
4
code/vendor/symfony/yaml/Inline.php
vendored
4
code/vendor/symfony/yaml/Inline.php
vendored
@@ -224,8 +224,8 @@ class Inline
|
||||
$i += strlen($output);
|
||||
|
||||
// remove comments
|
||||
if (false !== $strpos = strpos($output, ' #')) {
|
||||
$output = rtrim(substr($output, 0, $strpos));
|
||||
if (preg_match('/[ \t]+#/', $output, $match, PREG_OFFSET_CAPTURE)) {
|
||||
$output = substr($output, 0, $match[0][1]);
|
||||
}
|
||||
} elseif (preg_match('/^(.+?)('.implode('|', $delimiters).')/', substr($scalar, $i), $match)) {
|
||||
$output = $match[1];
|
||||
|
Reference in New Issue
Block a user