From d7830ab891dfb393c422b4da52430c429846fc29 Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Tue, 4 Apr 2023 17:20:09 +0200 Subject: Escape the regex star --- src/qif.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qif.rs b/src/qif.rs index 0e60520..36a192c 100644 --- a/src/qif.rs +++ b/src/qif.rs @@ -117,7 +117,7 @@ fn remove_card_number(text: &str) -> String { fn remove_payment_provider(text: &str) -> String { lazy_static! { static ref PURCH_REGEX: Regex = - Regex::new(r"(?i)^(purch( payfast\*)?|pp \*|c\*|yoco \*|ikh*)").unwrap(); + Regex::new(r"(?i)^(purch( payfast\*)?|pp \*|c\*|yoco \*|ikh\*)").unwrap(); } PURCH_REGEX.replace_all(text, "").trim().to_string() } -- cgit v1.2.3