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 26785a6 commit bd59111Copy full SHA for bd59111
libmamba/src/specs/match_spec.cpp
@@ -505,7 +505,7 @@ namespace mamba::specs
505
auto MatchSpec::parse(std::string_view str) -> expected_parse_t<MatchSpec>
506
{
507
// Remove comments, i.e. everything after ` #` (space included)
508
- if (const auto idx = str.find('#'); idx != std::string::npos && str[idx - 1] == ' ')
+ if (const auto idx = str.find(" #"); idx != std::string::npos)
509
510
str = str.substr(0, idx);
511
}
0 commit comments