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 issue with characters being removed during replace #4

Merged
merged 1 commit into from
Sep 7, 2013

Conversation

tjchaplin
Copy link
Collaborator

In cases where the a character of the string that was to be replaced was found a partial match would occur. However, the logic would place misplace the partial match in a different position in the resulting output. In addition, some cases the result would skip some characters at the end of the stream. This fix calculates and appends the tail of the stream based on the remaining stream buffer and the match.

Fixes #3

In cases where the a character of the string that was to be replaced was found a partial match would occur.  However, the logic would place misplace the partial match in a different position in the resulting output.  In addition, some cases the result would skip some characters at the end of the stream.

This fix calculates and appends the tail of the stream based on the remaining stream buffer and the match.

Fixes eugeneware#3
@eugeneware eugeneware merged commit 418c1e2 into eugeneware:master Sep 7, 2013
@eugeneware
Copy link
Owner

Thanks for the fix!

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.

Characters Removed During Replace
2 participants