File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -149,18 +149,18 @@ void Dotenv::ParseContent(const std::string_view input) {
149149 auto newline = content.find (' \n ' );
150150 if (newline != std::string_view::npos) {
151151 // If a newline is found, remove the comment line including the
152- // newline character
152+ // newline character.
153153 content.remove_prefix (newline + 1 );
154154 }
155155 }
156156
157157 // Skip the remaining code in the loop and continue with the next
158- // iteration
158+ // iteration.
159159 continue ;
160160 }
161161
162- // Find the next equals sign or newline in a single pass
163- // This optimizes the search by avoiding multiple iterations
162+ // Find the next equals sign or newline in a single pass.
163+ // This optimizes the search by avoiding multiple iterations.
164164 auto equal_or_newline = content.find_first_of (" =\n " );
165165
166166 // If we found nothing or found a newline before equals, the line is invalid
@@ -187,7 +187,7 @@ void Dotenv::ParseContent(const std::string_view input) {
187187
188188 content = trim_spaces (content);
189189
190- // Skip lines with empty keys after trimming spaces
190+ // Skip lines with empty keys after trimming spaces.
191191 // Examples of invalid keys that would be skipped:
192192 // =value
193193 // " "=value
You can’t perform that action at this time.
0 commit comments