properties-file
Advanced tools
Comparing version 2.1.15 to 2.1.16
@@ -27,3 +27,10 @@ "use strict"; | ||
var propertyLine = new property_line_1.PropertyLine(line, !!property); | ||
if (!property) { | ||
if (property) { | ||
// Continue parsing an existing property. | ||
property.addLine(propertyLine); | ||
if (propertyLine.continues) { | ||
continue; | ||
} | ||
} | ||
else { | ||
// Check if the line is a new property. | ||
@@ -39,9 +46,2 @@ if (propertyLine.isComment || propertyLine.isBlank) { | ||
} | ||
else { | ||
// Continue parsing an existing property. | ||
property.addLine(propertyLine); | ||
if (propertyLine.continues) { | ||
continue; | ||
} | ||
} | ||
// If the line does not continue, add the property to the collection. | ||
@@ -48,0 +48,0 @@ property = properties.add(property); |
@@ -150,3 +150,3 @@ "use strict"; | ||
// Check if the delimiter might be escaped. | ||
var prefix = !position ? '' : this.linesContent.slice(0, position); | ||
var prefix = position ? this.linesContent.slice(0, position) : ''; | ||
if (prefix.length > 0) { | ||
@@ -153,0 +153,0 @@ var backslashMatch = prefix.match(/(?<backslashes>\\+)$/); |
{ | ||
"name": "properties-file", | ||
"version": "2.1.15", | ||
"version": "2.1.16", | ||
"description": ".properties file parser, JSON converter and Webpack loader.", | ||
@@ -57,6 +57,6 @@ "author": "Avansai (https://avansai.com)", | ||
"@types/jest": "^29.2.3", | ||
"@typescript-eslint/eslint-plugin": "^5.43.0", | ||
"@typescript-eslint/parser": "^5.43.0", | ||
"@typescript-eslint/eslint-plugin": "^5.45.0", | ||
"@typescript-eslint/parser": "^5.45.0", | ||
"dotenv-cli": "^6.0.0", | ||
"eslint": "^8.27.0", | ||
"eslint": "^8.28.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
@@ -66,9 +66,9 @@ "eslint-import-resolver-node": "^0.3.6", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jest": "^27.1.5", | ||
"eslint-plugin-jest": "^27.1.6", | ||
"eslint-plugin-prefer-arrow-functions": "^3.1.4", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-unicorn": "^44.0.2", | ||
"eslint-plugin-unicorn": "^45.0.1", | ||
"jest": "^29.3.1", | ||
"prettier": "^2.7.1", | ||
"prettier-plugin-organize-imports": "^3.2.0", | ||
"prettier": "^2.8.0", | ||
"prettier-plugin-organize-imports": "^3.2.1", | ||
"prettier-plugin-sh": "^0.12.8", | ||
@@ -75,0 +75,0 @@ "release-it": "^15.5.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40428