dotenv-haphap
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -37,3 +37,3 @@ 'use strict'; | ||
const startOfMultiline = line.indexOf('=`'); | ||
if (startOfMultiline === -1 || firtsEqualsSign !== startOfMultiline) { | ||
if (startOfMultiline === -1 || firtsEqualsSign !== startOfMultiline || line.endsWith('`')) { | ||
return { lines: lines.concat(line), currentMultiLine: null }; | ||
@@ -40,0 +40,0 @@ } else { |
{ | ||
"name": "dotenv-haphap", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "dotenv with multiple dotenv file support", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -67,13 +67,5 @@ 'use strict'; | ||
t.equal( | ||
parsed.TRIM_SPACE_FROM_UNQUOTED, | ||
'some spaced out string', | ||
'retains spaces in string' | ||
); | ||
t.equal(parsed.TRIM_SPACE_FROM_UNQUOTED, 'some spaced out string', 'retains spaces in string'); | ||
t.equal( | ||
parsed.USERNAME, | ||
'therealnerdybeast@example.tld', | ||
'parses email addresses completely' | ||
); | ||
t.equal(parsed.USERNAME, 'therealnerdybeast@example.tld', 'parses email addresses completely'); | ||
@@ -88,8 +80,8 @@ t.equal(parsed.SPACED_KEY, 'parsed', 'parses keys and values surrounded by spaces'); | ||
t.equal( | ||
parsed.LOOKS_LIKE_AN_ITEM, | ||
undefined, | ||
'does not parse item inside a multile item' | ||
) | ||
t.equal(parsed.LOOKS_LIKE_AN_ITEM, undefined, 'does not parse item inside a multile item'); | ||
t.equal(parsed.BACK_TICK_ON_SINGLE_LINE, '{}', 'parses backtick even if there is no linebreak in it'); | ||
t.equal(parsed.AFTER_SINGLE_LINE_BACK_TICK, '12', 'parses correctly after single line back ticks') | ||
t.end(); | ||
}); |
Sorry, the diff of this file is not supported yet
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
9726
165