Skip to content

indexOf' gives incorrect result for empty prefix when starting index is out of bounds #42

@LiamGoodacre

Description

@LiamGoodacre

The expression indexOf' "" 2 "ab" evaluates to Just 0, however it should be Nothing because the string "ab" doesn't have a character at index 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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