fix github test and update the doc

This commit is contained in:
lilydjwg 2019-03-06 22:01:07 +08:00
parent 7897317294
commit de381bf26d
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)