Skip to content

Commit 1a83041

Browse files
committed
check for implicit anchor
1 parent 0e646f3 commit 1a83041

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/ctre/evaluation.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "atoms.hpp"
66
#include "atoms_unicode.hpp"
77
#include "starts_with_anchor.hpp"
8+
#include "has_implicit_anchor.hpp"
89
#include "utility.hpp"
910
#include "return_type.hpp"
1011
#include "find_captures.hpp"

include/ctre/wrapper.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ struct search_method {
6363
template <typename Modifier = singleline, typename ResultIterator = void, typename RE, typename IteratorBegin, typename IteratorEnd> constexpr CTRE_FORCE_INLINE static auto exec(IteratorBegin orig_begin, IteratorBegin begin, IteratorEnd end, RE) noexcept {
6464
using result_iterator = std::conditional_t<std::is_same_v<ResultIterator, void>, IteratorBegin, ResultIterator>;
6565

66-
constexpr bool fixed = starts_with_anchor(Modifier{}, ctll::list<RE>{});
66+
constexpr bool fixed = starts_with_anchor(Modifier{}, ctll::list<RE>{}) || has_implicit_anchor(ctll::list<RE>{});
6767

6868
auto it = begin;
6969

0 commit comments

Comments
 (0)