Skip to content

Wrong indexes in specific cases #1

Description

@nneto

At first I thought the problem only occurred when findall was set to True, until I got a wrong result when set to Falso too.

  • In "test.py", setting s = "GATACATACA$" and findall = True:
    Searching for "ATA" or "TAA" or "ACG", instead of receiving, respectively, [1, 5], [-1], and [-1] I'm getting [7, 3] for all of them;

  • When findall = False:
    "ACG" returns 1 instead of -1.

Maybe you are interested in knowing this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions