mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
Fix mypy and regex flag
This commit is contained in:
parent
c9b689d67b
commit
d7624defd7
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
# Copyright (c) 2020 Felix Yan <felixonmars@archlinux.org>, et al.
|
# Copyright (c) 2020 Felix Yan <felixonmars@archlinux.org>, et al.
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from nvchecker_source.cmd import run_cmd
|
from .cmd import run_cmd # type: ignore
|
||||||
|
|
||||||
async def get_version(
|
async def get_version(
|
||||||
name, conf, *, cache, keymanager=None
|
name, conf, *, cache, keymanager=None
|
||||||
|
@ -12,4 +12,4 @@ async def get_version(
|
||||||
data = await cache.get(cmd, run_cmd)
|
data = await cache.get(cmd, run_cmd)
|
||||||
regex = "(?<=refs/tags/).*$"
|
regex = "(?<=refs/tags/).*$"
|
||||||
|
|
||||||
return re.findall(regex, data)
|
return re.findall(regex, data, re.MULTILINE)
|
||||||
|
|
Loading…
Add table
Reference in a new issue