Improve regex to match uvscan output

This commit is contained in:
2019-05-09 14:01:49 +02:00
parent 4d2542776f
commit 7f9576bdbf

View File

@@ -28,7 +28,7 @@ import time
from subprocess import Popen, PIPE
uvscan_regex = re.compile(r"Found(?: the |: | )(.+)(?: .*|\.)", re.MULTILINE)
uvscan_regex = re.compile(r"Found:?(?: the| potentially unwanted program| (?:virus|trojan) or variant)? (.+?)(?:\.| (?:virus |trojan )?", re.MULTILINE)
async def run(uvscan, filename):