summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-04-04 17:20:09 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-04-04 17:20:09 +0200
commitd7830ab891dfb393c422b4da52430c429846fc29 (patch)
tree0b70e0be677b526afe9aacf6eb86de8b81dd62ad
parentcb635a52c5dcbc4d2d06cf955e82096f64140ccc (diff)
Escape the regex star
-rw-r--r--src/qif.rs2
1 files changed, 1 insertions, 1 deletions
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()
}