Mercurial > hg > octave-terminal
changeset 12915:9e1b9ca119eb
strsplit.m: Allow any scalar input for strip_empty option,
not just logical value.
* strsplit.m: Allow any scalar input for strip_empty option,
not just logical value.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Wed, 03 Aug 2011 15:38:59 -0700 |
parents | ac00ae83ea2e |
children | 5d0478a75618 |
files | scripts/strings/strsplit.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/strings/strsplit.m +++ b/scripts/strings/strsplit.m @@ -28,7 +28,7 @@ function s = strsplit (p, sep, strip_empty = false) if (nargin < 2 || nargin > 3 || ! ischar (p) || rows (p) > 1 - || ! ischar (sep) || ! islogical (strip_empty)) + || ! ischar (sep) || ! isscalar (strip_empty)) print_usage (); endif