Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/re_bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ impl Regex {
/// context into consideration. For example, the `\A` anchor can only
/// match when `start == 0`.
pub fn is_match_at(&self, text: &[u8], start: usize) -> bool {
self.shortest_match_at(text, start).is_some()
self.0.searcher().is_match_at(text, start)
}

/// Returns the same as find, but starts the search at the given
Expand Down
2 changes: 1 addition & 1 deletion src/re_unicode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ impl Regex {
/// context into consideration. For example, the `\A` anchor can only
/// match when `start == 0`.
pub fn is_match_at(&self, text: &str, start: usize) -> bool {
self.shortest_match_at(text, start).is_some()
self.0.searcher_str().is_match_at(text, start)
}

/// Returns the same as find, but starts the search at the given
Expand Down