File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -222,6 +222,10 @@ namespace winrt::YtFlowApp::implementation
222222 for (auto &&lineIt : std::views::split (data, ' \n ' ))
223223 {
224224 std::string_view const line (lineIt.begin (), lineIt.end ());
225+ if (TrimSpaces (line).starts_with (" #" sv))
226+ {
227+ continue ;
228+ }
225229 auto const lineEqPos = line.find (' =' );
226230 if (lineEqPos == std::string_view::npos)
227231 {
@@ -277,7 +281,7 @@ namespace winrt::YtFlowApp::implementation
277281 }
278282 }
279283 std::map<std::string_view, std::string_view> params;
280- while ( segIt != segView.end ())
284+ for (; segIt != segView.end (); ++segIt )
281285 {
282286 auto const param = std::string_view ((*segIt).begin (), (*segIt).end ());
283287 auto const paramEqPos = param.find (' =' );
@@ -292,7 +296,6 @@ namespace winrt::YtFlowApp::implementation
292296 continue ;
293297 }
294298 params.emplace (paramName, paramValue);
295- ++segIt;
296299 }
297300 auto pullParam = [¶ms](std::string_view const name) -> std::optional<std::string_view> {
298301 auto const it = params.find (name);
You can’t perform that action at this time.
0 commit comments