Update descriptionList.py

Simplifying RegEx because of set IGNORECASE
This commit is contained in:
Florian 2019-10-17 12:08:47 +02:00 committed by GitHub
parent c631692bac
commit dc00fbc7a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: