# HG changeset patch # User jwe # Date 1182363004 0 # Node ID f7fdea19da88c34b954f07b3462dd24db18adb03 # Parent c7eb2c1495281477168824df0e71238a3682c1e1 [project @ 2007-06-20 18:10:04 by jwe] diff -r c7eb2c149528 -r f7fdea19da88 scripts/ChangeLog --- a/scripts/ChangeLog Wed Jun 20 17:44:35 2007 +0000 +++ b/scripts/ChangeLog Wed Jun 20 18:10:04 2007 +0000 @@ -1,5 +1,8 @@ 2007-06-20 John W. Eaton + * strings/index.m: Allow strings to be empty. + From Hartmut Wziontek + * plot/__go_draw_axes__.m (do_tics_1): Fix typo (xtic -> tics). 2007-06-19 Vittoria Rezzonico @@ -330,7 +333,7 @@ * set/ismember.m: Always return logical values. * set/ismember.m: Return early if no matches are found. New tests. - From: David Grohmann . + From David Grohmann . * general/__isequal__.m: Allow numeric values of different classes to compare equal. diff -r c7eb2c149528 -r f7fdea19da88 scripts/strings/index.m --- a/scripts/strings/index.m Wed Jun 20 17:44:35 2007 +0000 +++ b/scripts/strings/index.m Wed Jun 20 18:10:04 2007 +0000 @@ -52,7 +52,7 @@ endif direction = lower (direction); - if (! (ischar (s) && ischar (t) && isvector (s) && isvector (t))) + if (! (ischar (s) && ischar (t))) error ("index: expecting character string arguments"); elseif (! strcmp (direction, {"first", "last"})) error ("index: direction must be either \"first\" or \"last\"");