Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve end of url detection #23

Merged
merged 2 commits into from
Sep 24, 2016

Conversation

ipwnponies
Copy link

This is for the detection of uri to avoid including brackets and braces. Previously, http://example.com[ was being picked up as the whole url.

regex_assert.finds_url('http://example.com{blah', 'http://example.com')
regex_assert.finds_url('http://example.com{blah}', 'http://example.com')
regex_assert.finds_url('http://example.com/foo{', 'http://example.com/foo')

Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a separate test and probably use @pytest.mark.parametrize

Copy link
Author

Choose a reason for hiding this comment

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

I'm making the change, thanks for letting me know about @pytest.mark.parametrize. Now each test case shows up individually!

@@ -5,7 +5,7 @@
def main():
setup(
name='yelp_uri',
version='1.2.0',
version='2.0.0',
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see any breaking changes here?

Copy link
Author

Choose a reason for hiding this comment

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

Buck promoted tlds module to its own package in a separate pull request and those changes have already been merged. You're correct, these changes are only patches and not major/minor. I can remove this and let whoever pushes the package to handle bumping the version, is that the correct procedure?

Copy link
Contributor

Choose a reason for hiding this comment

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

that's what I'd do. I generally avoid bumping versions in PRs anyway and leave it up to the maintainers to change the number and release (even when I'm the maintainer). It also has the added benefit of avoiding merge conflicts with others :)

Copy link
Author

Choose a reason for hiding this comment

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

This has been removed from the PR.

@bukzor bukzor merged commit 5c42c33 into Yelp:master Sep 24, 2016
@ipwnponies ipwnponies deleted the improve_end_url_detection branch September 24, 2016 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants