Piccoli fix

This commit is contained in:
Alhaziel01
2020-06-15 18:20:59 +02:00
parent afda997453
commit 04fa44d8ca
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ def find_single_match(data, patron, index=0):
else:
return matches.group()
else:
return []
return ""
else:
matches = re.findall(patron, data, flags=re.DOTALL)
return matches[index]