fix github test and update the doc
This commit is contained in:
parent
7897317294
commit
de381bf26d
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue