Skip to content

Stream::findUntil() sometimes fails to find strings with repeated prefixes. [imported] #769

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

Closed
cmaglie opened this issue Nov 15, 2012 · 1 comment
Milestone

Comments

@cmaglie
Copy link
Member

cmaglie commented Nov 15, 2012

This is Issue 769 moved from a Google Code project.
Added by 2012-01-02T18:43:04.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium, Component-Core

Original description

What steps will reproduce the problem?

  1. Try Serial.findUntil("ababc");
  2. Send the characters "abababc" from the Serial monitor.

What is the expected output? What do you see instead?

The function returns false, not true. This is because when it sees the third a, it starts the find over from the start, ignoring the fact that the previous three characters match.

Please use labels and text to provide additional information.

This is a more general case of issue 768.

@cmaglie
Copy link
Member Author

cmaglie commented Jun 1, 2015

Fixed in #2814

@cmaglie cmaglie closed this as completed Jun 1, 2015
@ffissore ffissore modified the milestone: Release 1.6.5 Jun 3, 2015
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

No branches or pull requests

3 participants