We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b673e61 commit 4bafda0Copy full SHA for 4bafda0
src/extension/common/variables/environment.ts
@@ -176,7 +176,7 @@ function parseEnvLine(line: string): [string, string] {
176
// https://github.com/motdotla/dotenv/blob/master/lib/main.js#L32
177
// We don't use dotenv here because it loses ordering, which is
178
// significant for substitution.
179
- // Modified to handle multiline values by using 's' flag to make . match newlines
+ // Modified to handle multiline values by using 's' flag so $ matches before newlines in multiline strings
180
const match = line.match(/^\s*(_*[a-zA-Z]\w*)\s*=\s*(.*?)?\s*$/s);
181
if (!match) {
182
return ['', ''];
0 commit comments