Skip to content

Comments

Fix #194 and #114: Update semver regex to version from semver.org#198

Merged
s-celles merged 1 commit intopython-semver:masterfrom
ppkt:update-semver-regex
Nov 24, 2019
Merged

Fix #194 and #114: Update semver regex to version from semver.org#198
s-celles merged 1 commit intopython-semver:masterfrom
ppkt:update-semver-regex

Conversation

@ppkt
Copy link
Member

@ppkt ppkt commented Nov 20, 2019

I took a regex from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string , splitted it into multiple lines to match current format and renamed buildmetadata -> build. Also, I found and fix a problem with invalid Python 2.7 super call :)

Copy link
Member

@tomschr tomschr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that is awesome! 👍 Just one comment. 😉

@tomschr tomschr added the Bug Error, flaw or fault to produce incorrect or unexpected results label Nov 20, 2019
@s-celles
Copy link
Member

Nice catch about super call with Py 2.7
I can not wait for it to die 😅

…ersion from semver.org

Also, fix problem with invalid Python 2.7 super call.
@ppkt ppkt force-pushed the update-semver-regex branch from bab5bc0 to 508dcf4 Compare November 20, 2019 21:23
@s-celles
Copy link
Member

@ppkt Could you add a note to CHANGELOG?

Copy link
Member

@tomschr tomschr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. 👍

@s-celles s-celles merged commit 017e296 into python-semver:master Nov 24, 2019
@s-celles
Copy link
Member

Thanks @ppkt for this PR and @tomschr for reviewing.

@ppkt
Copy link
Member Author

ppkt commented Nov 25, 2019

@scls19fr of course, I'll do this in next PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Error, flaw or fault to produce incorrect or unexpected results

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants