Skip to content

Commit

Permalink
Try fixing Windows failure
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Mar 20, 2024
1 parent 1b3ad19 commit e4dc3b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libmamba/src/specs/regex_spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ namespace mamba::specs
// to be handled by ``tl::expected`` to be managed down the road.
try
{
return { { std::regex(pattern), std::move(pattern) } };
auto regex = std::regex(pattern);
return { { std::move(regex), std::move(pattern) } };
}
catch (const std::regex_error& e)
{
Expand All @@ -51,7 +52,7 @@ namespace mamba::specs
// not a glob when serializing it.
if (!util::starts_with(m_raw_pattern, pattern_start))
{
m_raw_pattern.insert(m_raw_pattern.cbegin(), pattern_start);
m_raw_pattern.insert(m_raw_pattern.begin(), pattern_start);
}
if (!util::ends_with(m_raw_pattern, pattern_end))
{
Expand Down

0 comments on commit e4dc3b8

Please sign in to comment.