From 04abde29f518c1f2943a17b892145b31c350a071 Mon Sep 17 00:00:00 2001 From: Bryce Date: Mon, 18 Mar 2024 23:06:24 -0700 Subject: [PATCH] Fixes Southern Glazers --- src/clj/auto_ap/parse/templates.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj/auto_ap/parse/templates.clj b/src/clj/auto_ap/parse/templates.clj index e5f3cb7b..5872b405 100644 --- a/src/clj/auto_ap/parse/templates.clj +++ b/src/clj/auto_ap/parse/templates.clj @@ -99,7 +99,7 @@ {:vendor "Southern Glazers" :keywords [#"Southern Glazer's"] :extract {:date #"INVOICE DATE(?s:.*)(?= (?:[0-9]+/[0-9]+/[0-9]+)\s+([0-9]+/[0-9]+/[0-9]+)) " - :invoice-number #"INVOICE\n(?:.*?)(?=\d{4,})(\d+)" + :invoice-number #"(?s)INVOICE\n(?:.*?)(?=\d{4,})(\d+)" :total #"PAY THIS AMOUNT(?s:.*)(?= ([0-9,]+\.[0-9]{2}))" :account-number #"ACCOUNT #.*\n.*?[\n]?\s+(\d+)"} :parser {:date [:clj-time "MM/dd/yy"]