Skip to content

Commit 384fd99

Browse files
committed
Fixed extra capture group in PEP440 parser
1 parent 88e7f71 commit 384fd99

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tests/fixtures/pep440.toml

+5-7
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@ tag_message = "Bump version: {current_version} → {new_version}"
1010
current_version = "1.0.0"
1111
parse = """(?x)
1212
(?:
13-
(?P<release>
14-
(?P<major>[0-9]+)
13+
(?P<major>[0-9]+)
14+
(?:
15+
\\.(?P<minor>[0-9]+)
1516
(?:
16-
\\.(?P<minor>[0-9]+)
17-
(?:
18-
\\.(?P<patch>[0-9]+)
19-
)?
17+
\\.(?P<patch>[0-9]+)
2018
)?
21-
)
19+
)?
2220
(?P<prerelease>
2321
[-_\\.]?
2422
(?P<pre_label>a|b|rc)

0 commit comments

Comments
 (0)