Skip to content

Commit fa60e8b

Browse files
authored
Merge pull request #171 from anisse/fix-regex-lint-fix
virtme: fix regex expecting a group
2 parents 4ebe29c + 1bb0dfd commit fa60e8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtme/commands/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def get_kernel_version(img_name, path):
404404
# The version detection fails s390x using file or strings tools, so check
405405
# if the file itself contins the version number.
406406
if img_name:
407-
match = re.search(fr"{img_name}-\S{{3,}}", path)
407+
match = re.search(fr"{img_name}-(\S{{3,}})", path)
408408
if match:
409409
return match.group(1)
410410

0 commit comments

Comments
 (0)