Skip to content

ugrep doesn't match a disdunction when a wildcard is present in one component, but not the other in some circumstances #451

@wernerk-bbd

Description

@wernerk-bbd

echo "The Quick Brown Fox asdf\nasdf TQBF asdf\nasdf TWBF" | ug -i 'the.quick.brown|TWBF|TQBF'

 1: The Quick Brown Fox asdf

Seems it happens when the first character is the same and -i is used

echo "The Quick Brown Fox asdf\nasdf TQBF asdf\nasdf TWBF" | ug -i 'the.quick.brown|WBF|QBF'

1: The Quick Brown Fox asdf
2: asdf TQBF asdf
3: asdf TWBF

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpatchA patch to fix an issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions