Skip to content

Conversation

@mbenedettini
Copy link

New string flag: url_regexp

Filters urls by matching based on a regexp instance built based on the regular expression passed here as a string. The ones not matching are discarded.

Comment on lines +791 to +795
Filters urls by matching based on a regexp instance built based
on the regular expression passed here as a string. The ones not matching
are discarded.

.. versionadded:: 1.8.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is more clear to the reader.

Suggested change
Filters urls by matching based on a regexp instance built based
on the regular expression passed here as a string. The ones not matching
are discarded.
.. versionadded:: 1.8.1
Filters URLs by matching a regular expression passed into the parameter ``url_regexp`` as a string.
The URLs that don't match get discarded.
.. versionadded:: 2.0.0

@stevepiercy
Copy link
Collaborator

@mbenedettini thank you for creating this PR. To merge this, would you please:

  • Review my suggestion
  • Update this branch against main
  • Add a change log entry in doc/changelog.rst

Then I'll review and merge. It looks good. Thank you!

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.

2 participants