We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa26f83 commit 286bb84Copy full SHA for 286bb84
src/node_dotenv.cc
@@ -156,7 +156,7 @@ void Dotenv::ParseContent(const std::string_view input) {
156
key = trim_spaces(key);
157
158
// If the value is not present (e.g. KEY=) set is to an empty string
159
- if (content.front() == '\n') {
+ if (content.empty() || content.front() == '\n') {
160
store_.insert_or_assign(std::string(key), "");
161
continue;
162
}
0 commit comments