isInfixOf returns incorrect result when a partial match is found before a complete match
mthiems opened this issue · comments
Mike T commented
In version 8.2.2
Small example, shown in repl:
> List.Extra.isInfixOf [1,2] [1,3,1,2]
False : Bool
It should return True
.
The problem is that the implementation switches to isPrefixOf
as soon as a single item matches.
Palmer Paul commented
Good catch! I just opened a PR with a fix.