Skip to content

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

Closed
@cmaglie

Description

@cmaglie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions