diff --git a/Inline.php b/Inline.php index 21a121a0..45978a12 100644 --- a/Inline.php +++ b/Inline.php @@ -237,11 +237,6 @@ public static function parseScalar($scalar, $delimiters = null, $stringDelimiter */ private static function parseQuotedScalar($scalar, &$i) { - // Only check the current item we're dealing with (for sequences) - $subject = substr($scalar, $i); - $items = preg_split('/[\'"]\s*(?:[,:]|[}\]]\s*,)/', $subject); - $subject = substr($subject, 0, strlen($items[0]) + 1); - if (!preg_match('/'.self::REGEX_QUOTED_STRING.'/Au', substr($scalar, $i), $match)) { throw new ParseException(sprintf('Malformed inline YAML string (%s).', substr($scalar, $i))); }