diff --git a/README.rst b/README.rst index 7748608..689794d 100644 --- a/README.rst +++ b/README.rst @@ -292,7 +292,7 @@ use_max_tag ``sort_version_key`` option. max_page - How many pages do we search for the max tag? Default is 3. This works when + How many pages do we search for the max tag? Default is 1. This works when ``use_max_tag`` is set. proxy diff --git a/nvchecker/source/github.py b/nvchecker/source/github.py index 54eebf1..c0c321b 100644 --- a/nvchecker/source/github.py +++ b/nvchecker/source/github.py @@ -62,7 +62,7 @@ async def get_version_real(name, conf, **kwargs): return await max_tag(partial( session.get, headers=headers, **kwargs), url, name, ignored_tags, include_tags_pattern, - max_page = conf.get("max_page", 3), + max_page = conf.get("max_page", 1), ) async with session.get(url, headers=headers, **kwargs) as res: diff --git a/tests/test_github.py b/tests/test_github.py index 6ca8caf..b13a864 100644 --- a/tests/test_github.py +++ b/tests/test_github.py @@ -44,6 +44,6 @@ async def test_github_max_tag_with_include(get_version): version = await get_version("example", { "github": "EFForg/https-everywhere", "use_max_tag": 1, - "include_regex": r"^\d.*", + "include_regex": r"chrome-\d.*", }) - assert re.match(r'[\d.]+', version) + assert re.match(r'chrome-[\d.]+', version)