Mercurial > hg > octave-terminal
changeset 12352:b7242f2c0165 release-3-4-x
Simplify regexp to make it POSIX compliant.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Mon, 31 Jan 2011 12:38:03 -0800 |
parents | a275d7bf12f1 |
children | 27bab6a53ec7 |
files | scripts/ChangeLog scripts/plot/private/__gnuplot_has_terminal__.m |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2010-01-31 Rik <octave@nomad.inbox5.com> + + * plot/private/__gnuplot_has_terminal__.m: Simplify regular expression + to eliminate word-boundary assertion. + 2010-01-30 Rik <octave@nomad.inbox5.com> * deprecated/module.mk, optimization/module.mk: Deprecate glpkmex
--- a/scripts/plot/private/__gnuplot_has_terminal__.m +++ b/scripts/plot/private/__gnuplot_has_terminal__.m @@ -35,7 +35,7 @@ plot_stream = __gnuplot_open_stream__ (2); endif available_terminals = __gnuplot_get_var__ (plot_stream, "GPVAL_TERMINALS"); - available_terminals = regexp (available_terminals, '\b\w+\b', "match"); + available_terminals = regexp (available_terminals, '\w+', "match"); if (nargin < 2 && ! isempty (plot_stream)) pclose (plot_stream(1)); if (numel (plot_stream) > 1)