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

Fixed bug in withNameRegex and firstWithNameRegex when name is null #81

Merged
merged 1 commit into from
Nov 27, 2014

Conversation

fsonntag
Copy link

This is a small bug fix for the functions withNameRegex and firstWithNameRegex.

When there are elements in the iterated array where the name is null, I got the following error:
TypeError: undefined is not a function (evaluating 'elem.name().match')

So I included a check if the name exists by calling the name() function as an additional condition.

alexvollmer added a commit that referenced this pull request Nov 27, 2014
Fixed bug in withNameRegex and firstWithNameRegex when name is null
@alexvollmer alexvollmer merged commit d8d73da into vkolgi:master Nov 27, 2014
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