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 e3ee074 commit 6d32733Copy full SHA for 6d32733
src/node_dotenv.cc
@@ -154,6 +154,13 @@ void Dotenv::ParseContent(const std::string_view input) {
154
key = content.substr(0, equal);
155
content.remove_prefix(equal + 1);
156
key = trim_spaces(key);
157
+
158
+ // If the value is not present (e.g. KEY=) an empty string is used instead
159
+ if (content.front() == '\n') {
160
+ store_.insert_or_assign(std::string(key), "");
161
+ continue;
162
+ }
163
164
content = trim_spaces(content);
165
166
if (key.empty()) {
0 commit comments