From 593067767cb1cdcf0b722d0efa0df1a53f4be123 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 30 Mar 2019 21:12:35 +0000 Subject: Match ignoring case --- z80count.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/z80count.py b/z80count.py index 58c07f1..422d3ff 100755 --- a/z80count.py +++ b/z80count.py @@ -61,7 +61,7 @@ def main(): table = json.load(fd) for i in range(len(table)): - table[i]["cregex"] = re.compile(table[i]["regex"] + r"\s?(;.*)?") + table[i]["cregex"] = re.compile(table[i]["regex"] + r"\s?(;.*)?", re.I) our_comment = re.compile(r"(\[[0-9.\s/]+\])") -- cgit v1.2.3