From dc00fbc7a0271198cfafd80e71185783a79135fc Mon Sep 17 00:00:00 2001 From: Florian Date: Thu, 17 Oct 2019 12:08:47 +0200 Subject: [PATCH] Update descriptionList.py Simplifying RegEx because of set IGNORECASE --- includes/descriptionList.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/descriptionList.py b/includes/descriptionList.py index c61a46e..11281fd 100644 --- a/includes/descriptionList.py +++ b/includes/descriptionList.py @@ -43,7 +43,7 @@ def loadCSV(typ, idField): for row in reader: logging.debug(row) # only import rows with an integer as id, allow subrics though - if re.match("^[0-9A-Fa-f]+$", row[idField], re.IGNORECASE): + if re.match("^[0-9A-F]+$", row[idField], re.IGNORECASE): try: resultList[row[idField].lower()] = stringConverter.convertToUTF8(row['description']) except: