Update packages/playwright-core/src/server/injected/yaml.ts

Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
Signed-off-by: Pavel Feldman <pavel.feldman@gmail.com>
This commit is contained in:
Pavel Feldman 2025-01-06 16:46:06 -08:00 committed by GitHub
parent 30acc8ae8f
commit 73c6750778
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,7 +58,7 @@ function yamlStringNeedsQuotes(str: string): boolean {
if (/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/.test(str))
return true;
// Strings starting with '-' followed by a space need quotes
// Strings starting with '-' need quotes
if (/^-/.test(str))
return true;