diff --git a/README.rst b/README.rst index 5764606..48a7a66 100644 --- a/README.rst +++ b/README.rst @@ -198,7 +198,7 @@ source sections to determine whether they are supported. include_regex Only consider version strings that match the given regex. The whole string - should match the regex. + should match the regex. Be sure to use ``.*`` when you mean it! sort_version_key Sort the version string using this key function. Choose between diff --git a/tests/test_github.py b/tests/test_github.py index 0a076e2..6ca8caf 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"^\d.*", }) assert re.match(r'[\d.]+', version)