From f81b7f524e8e59802df9c08e96e411238edd7086 Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> Date: Thu, 25 Jul 2024 03:01:19 +0300 Subject: [PATCH] fix regex --- .gitignore | 2 ++ genc.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2bee250 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +test/ +genc.txt \ No newline at end of file diff --git a/genc.py b/genc.py index f0bc3c4..f4e98b0 100644 --- a/genc.py +++ b/genc.py @@ -2,7 +2,7 @@ import re import xml.etree.ElementTree as ET class OpCode: - OPCODE_REGEX = re.compile("[0-9a-fA-F][0-9a-fA-F]") + OPCODE_REGEX = re.compile("[0-9A-F][0-9A-F]") def __init__(self, ins, operand_encodings): self.x32m = ins.attrib["x32m"]