Skip to content

IndexOf result #47077

@zhoujit

Description

@zhoujit

int idx3 = "a\r\nb".IndexOf("\n");

Above statement returns -1.

OS: Ubuntu/WSL2
Version: .NET 5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions