# MIT licensed
# Copyright (c) 2020 Felix Yan <felixonmars@archlinux.org>, et al.

import re
from .cmd import run_cmd # type: ignore

async def get_version(
  name, conf, *, cache, keymanager=None
):
  git = conf['git']
  cmd = f"git ls-remote -t --refs {git}"
  data = await cache.get(cmd, run_cmd)
  regex = "(?<=refs/tags/).*$"

  return re.findall(regex, data, re.MULTILINE)

# MIT licensed
# Copyright (c) 2020 Felix Yan <felixonmars@archlinux.org>, et al.

import re
from nvchecker_source.cmd import run_cmd

async def get_version(
  name, conf, *, cache, keymanager=None
):
  git = conf['git']
  cmd = f"git ls-remote -t --refs {git}"
  data = await cache.get(cmd, run_cmd)
  regex = "(?<=refs/tags/).*$"

  return re.findall(regex, data)

--- 
+++ 
@@ -2,7 +2,7 @@
 # Copyright (c) 2020 Felix Yan <felixonmars@archlinux.org>, et al.
 
 import re
-from nvchecker_source.cmd import run_cmd
+from .cmd import run_cmd # type: ignore
 
 async def get_version(
   name, conf, *, cache, keymanager=None
@@ -12,4 +12,4 @@
   data = await cache.get(cmd, run_cmd)
   regex = "(?<=refs/tags/).*$"
 
-  return re.findall(regex, data)
+  return re.findall(regex, data, re.MULTILINE)
Fix mypy and regex flag
