fix regex and add test script

This commit is contained in:
2019-06-24 10:02:22 +02:00
parent 7f9576bdbf
commit 2fb0ece5d3
2 changed files with 10 additions and 1 deletions

9
test-uvscand Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env python
import sys
import uvscand
if __name__ == '__main__':
sys.exit(
uvscand.main()
)

View File

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