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:
parent
30acc8ae8f
commit
73c6750778
|
|
@ -58,7 +58,7 @@ function yamlStringNeedsQuotes(str: string): boolean {
|
||||||
if (/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/.test(str))
|
if (/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/.test(str))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Strings starting with '-' followed by a space need quotes
|
// Strings starting with '-' need quotes
|
||||||
if (/^-/.test(str))
|
if (/^-/.test(str))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue