From 9f268d5acc321e9dc97840f7342c2e1272b9b56b Mon Sep 17 00:00:00 2001
From: Ben Elliston <bje@air.net.au>
Date: Sat, 17 Feb 2024 23:06:07 +1100
Subject: [PATCH] * summary (patterns): Fix bug in battery patterns.

---
 summary | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/summary b/summary
index 3ba27e34..3cc3bf15 100644
--- a/summary
+++ b/summary
@@ -83,7 +83,7 @@ scenario_num = 0  # pylint: disable=invalid-name
 
 patterns = {
     # don't count battery loads
-    '[Bb]att(ery) ([Ll]oad|[Cc]harger)?.*[kMG]W$': lambda f: None,
+    '[Bb]att(ery)? ([Ll]oad|[Cc]harge).*[kMG]W$': lambda f: None,
     '[Bb]att(ery)?.*[kMG]W$': lambda f: addcap("battery", f),
     'HSA.*[kMG]W$': lambda f: addcap("HSA", f),
     'EGS.*[kMG]W$': lambda f: addcap("EGS", f),