Skip to content

[Bug] in def findNode #1

@conscho

Description

@conscho

I believe there is a small bug in def findNode. It can be found in line 168 in lib/Newick.rb.

The line is currently: if (@name =~/#{name}/)
and should be: if @name == name

Why?
If there are nodes with the names 111, 11 and 1 in the tree and you are looking for node 1. It will find either of them and stop at the first one found.

Cheers and thanks!

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