Skip to content

StripStr doesn't appear to maintain state across calls to strip_next. #339

Description

@SamuelMcGowan

When I pass "\x1b[" to anstream's StripStr::strip_next (and consume the iterator) , then call it again with "38;", the "38;" is not stripped as I would expect but is returned from the iterator. Printing out the StripStr shows that it is in the Ground state after the first call.

When I use StripBytes instead, the "38;" is stripped as I expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions