From de381bf26da66ef40ec063e9511d2714bfa694d5 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Wed, 6 Mar 2019 22:01:07 +0800 Subject: [PATCH] fix github test and update the doc --- README.rst | 2 +- tests/test_github.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)