diff options
Diffstat (limited to 'src/pattern/input_pattern.rs')
-rw-r--r-- | src/pattern/input_pattern.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pattern/input_pattern.rs b/src/pattern/input_pattern.rs index fa2af5e..d5e6c39 100644 --- a/src/pattern/input_pattern.rs +++ b/src/pattern/input_pattern.rs @@ -55,11 +55,11 @@ impl InputPattern { pub fn tree_to_preview(&self) -> Self { let regex_parts: Option<(String, String)> = match &self.pattern { Pattern::ContentExact(cp) => Some(cp.to_regex_parts()), - Pattern::ContentRegex(cp) => Some(cp.to_regex_parts()), + Pattern::ContentRegex(rp) => Some(rp.to_regex_parts()), Pattern::Composite(cp) => cp.expr .iter_atoms() .find_map(|p| match p { - Pattern::ContentExact(cp) => Some(cp.to_regex_parts()), + Pattern::ContentExact(ce) => Some(ce.to_regex_parts()), Pattern::ContentRegex(cp) => Some(cp.to_regex_parts()), _ => None }), |