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

Adding new alias for hasText called matchesText #69

Merged
merged 1 commit into from
Mar 28, 2018

Conversation

RahulShivkumar
Copy link
Contributor

hasText is a little confusing and strikes me as an inclusion rather than a strict comparison. I think matchesText is more explicit in calling that out. I'm assuming the documentation change in API.md should come out after the next release and not with this PR.

This is my first open source contribution :) please let me know if there is anything else I'd have to change anywhere else!

Copy link
Collaborator

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @RahulShivkumar! 👍

I think since hasText() also accepts regular expressions and those are often checked against using the verb "matches" this fits quite well.

@Turbo87 Turbo87 merged commit 227691a into mainmatter:master Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants