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 b71f8d0 commit 9344f20Copy full SHA for 9344f20
crates/snapbox/src/filter/pattern.rs
@@ -473,10 +473,11 @@ fn normalize_array_to_redactions(
473
input_index = input.len();
474
break;
475
};
476
- let Some(index_offset) = input[input_index..]
477
- .iter()
478
- .position(|next_input_elem| next_input_elem == *next_pattern_elem)
479
- else {
+ let Some(index_offset) = input[input_index..].iter().position(|next_input_elem| {
+ let mut next_input_elem = next_input_elem.clone();
+ normalize_value_to_redactions(&mut next_input_elem, next_pattern_elem, redactions);
+ next_input_elem == **next_pattern_elem
480
+ }) else {
481
// Give up as we can't find where the elide ends
482
483
0 commit comments