Skip to content

Commit 5e96a3d

Browse files
[Yaml] Remove legacy parsing rule
1 parent b01c4e7 commit 5e96a3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser.php

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

0 commit comments

Comments
 (0)