lingo.dev 0.116.4 → 0.116.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.cjs +8 -1
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +8 -1
- package/build/cli.mjs.map +1 -1
- package/package.json +4 -4
package/build/cli.cjs
CHANGED
|
@@ -2111,6 +2111,13 @@ function getKeyType(yamlString) {
|
|
|
2111
2111
|
function getStringType(yamlString) {
|
|
2112
2112
|
if (yamlString) {
|
|
2113
2113
|
const lines = yamlString.split("\n");
|
|
2114
|
+
const hasLiteralBlockScalar = lines.find((line) => {
|
|
2115
|
+
const trimmedLine = line.trim();
|
|
2116
|
+
return trimmedLine.match(/:\s*\|[-+]?\s*$/);
|
|
2117
|
+
});
|
|
2118
|
+
if (hasLiteralBlockScalar) {
|
|
2119
|
+
return "PLAIN";
|
|
2120
|
+
}
|
|
2114
2121
|
const hasDoubleQuotes = lines.find((line) => {
|
|
2115
2122
|
const trimmedLine = line.trim();
|
|
2116
2123
|
return (trimmedLine.startsWith('"') || trimmedLine.match(/:\s*"/)) && (trimmedLine.endsWith('"') || trimmedLine.endsWith('",'));
|
|
@@ -13465,7 +13472,7 @@ async function renderHero2() {
|
|
|
13465
13472
|
// package.json
|
|
13466
13473
|
var package_default = {
|
|
13467
13474
|
name: "lingo.dev",
|
|
13468
|
-
version: "0.116.
|
|
13475
|
+
version: "0.116.5",
|
|
13469
13476
|
description: "Lingo.dev CLI",
|
|
13470
13477
|
private: false,
|
|
13471
13478
|
publishConfig: {
|