@@ -162,3 +162,3 @@ import { Scalar } from '../nodes/Scalar.js'; | ||
| // 2. Strings consisting of only whitespace are best rendered explicitly. | ||
| if (!blockQuote || /\n[\t ]+$/.test(value) || /^\s*$/.test(value)) { | ||
| if (!blockQuote || /\n[\t ]+$/.test(value)) { | ||
| return quotedString(value, ctx); | ||
@@ -165,0 +165,0 @@ } |
@@ -164,3 +164,3 @@ 'use strict'; | ||
| // 2. Strings consisting of only whitespace are best rendered explicitly. | ||
| if (!blockQuote || /\n[\t ]+$/.test(value) || /^\s*$/.test(value)) { | ||
| if (!blockQuote || /\n[\t ]+$/.test(value)) { | ||
| return quotedString(value, ctx); | ||
@@ -167,0 +167,0 @@ } |
+2
-1
| { | ||
| "name": "yaml", | ||
| "version": "2.8.0", | ||
| "version": "2.8.1", | ||
| "license": "ISC", | ||
@@ -86,2 +86,3 @@ "author": "Eemeli Aro <eemeli@gmail.com>", | ||
| "jest": "^29.0.1", | ||
| "jest-resolve": "^29.7.0", | ||
| "jest-ts-webcompat-resolver": "^1.0.0", | ||
@@ -88,0 +89,0 @@ "prettier": "^3.0.2", |
+2
-20
@@ -23,2 +23,4 @@ # YAML <a href="https://www.npmjs.com/package/yaml"><img align="right" src="https://badge.fury.io/js/yaml.svg" title="npm package" /></a> | ||
| For build instructions and contribution guidelines, see [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md). | ||
| To install: | ||
@@ -34,22 +36,2 @@ | ||
| The development and maintenance of this library is [sponsored](https://github.com/sponsors/eemeli) by: | ||
| <p align="center" width="100%"> | ||
| <a href="https://www.scipress.io/" | ||
| ><img | ||
| width="150" | ||
| align="top" | ||
| src="https://eemeli.org/yaml/images/scipress.svg" | ||
| alt="Scipress" | ||
| /></a> | ||
| | ||
| <a href="https://manifest.build/" | ||
| ><img | ||
| width="150" | ||
| align="top" | ||
| src="https://eemeli.org/yaml/images/manifest.svg" | ||
| alt="Manifest" | ||
| /></a> | ||
| </p> | ||
| ## API Overview | ||
@@ -56,0 +38,0 @@ |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
683012
-0.06%22
4.76%173
-9.42%