octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

index buggy for matching patterns longer than 3


From: John W. Eaton
Subject: index buggy for matching patterns longer than 3
Date: Fri, 14 Sep 2007 13:17:41 -0400

On  7-Aug-2007, Jean-Francois Cardoso wrote:

| There is an error in the logic of find.m which makes it report a
| matching pattern when *only* the first three characters match.
| For example,
|      index("abc---", "abc+++")
| returns 1 rather than 0.
| 
| The following patch fixes this and also adds the relevant new
| testcases.

I made this change.

Thanks,

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]