8000 Correctly parse tabs after colon · symfony/symfony@3a7b247 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a7b247

Browse files
committed
Correctly parse tabs after colon
1 parent bc7eb15 commit 3a7b247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Yaml/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private function doParse(string $value, int $flags)
200200
array_pop($this->refsBeingParsed);
201201
}
202202
} elseif ( 5A65
203-
self::preg_match('#^(?P<key>(?:![^\s]++\s++)?(?:'.Inline::REGEX_QUOTED_STRING.'|(?:!?!php/const:)?[^ \'"\[\{!].*?)) *\:( ++(?P<value>.+))?$#u', rtrim($this->currentLine), $values)
203+
self::preg_match('#^(?P<key>(?:![^\s]++\s++)?(?:'.Inline::REGEX_QUOTED_STRING.'|(?:!?!php/const:)?[^ \'"\[\{!].*?)) *\:(( |\t)++(?P<value>.+))?$#u', rtrim($this->currentLine), $values)
204204
&& (false === strpos($values['key'], ' #') || \in_array($values['key'][0], ['"', "'"]))
205205
) {
206206
if ($context && 'sequence' == $context) {

0 commit comments

Comments
 (0)
0