Skip to content

Add matches method#3

Open
jamieforrest wants to merge 3 commits intoPoogles:masterfrom
jamieforrest:add-matches-method
Open

Add matches method#3
jamieforrest wants to merge 3 commits intoPoogles:masterfrom
jamieforrest:add-matches-method

Conversation

@jamieforrest
Copy link

It would be helpful to be able to get the list of all of the regex matches separately from the boolean method any_match. This PR adds a new matches method to do just that, and refactors any_match to use the new method. It also adds two new unit tests, similar to others in the test suite, to test this new method.

The PR also adds a small refactor to reduce duplicate code by creating two new helper methods for building the regex class attributes and callables: __build_regex_class_attributes and __build_class_attributes_callables.

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.

1 participant