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

Bug fix and unit test for edge case failure in findText() when using a r... #246

Merged
merged 1 commit into from
Sep 10, 2014

Conversation

bendemboski
Copy link
Contributor

The new unit test throws an exception without the change to rangy-textrange.js and I traced it back to the handleMatch() call on line 1564 being made when matchStartIndex is undefined.

If my understanding of the code is correct, we should be setting matchStartIndex and matchEndIndex anytime we get a match, rather than only when we are already in a match.

@timdown timdown merged commit 315d8b4 into timdown:master Sep 10, 2014
@timdown
Copy link
Owner

timdown commented Sep 10, 2014

Thanks, that's perfect.

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