From 7559ed5f6650524bcdb348c1f27cd87600a87e7e Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Tue, 27 Dec 2011 16:46:30 -0800 Subject: [PATCH] data-ids can now include characters such as -. Any non-whitespace works --- bin/feedgnuplot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/feedgnuplot b/bin/feedgnuplot index 9430017..4e46d04 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -388,7 +388,7 @@ sub mainThread my $numRE = '-?\d*\.?\d+(?:[Ee][-+]?\d+)?'; # a point may be preceded by an id - my $pointRE = $options{dataid} ? '(\w+)\s+' : '()'; + my $pointRE = $options{dataid} ? '(\S+)\s+' : '()'; $pointRE .= '(' . join('\s+', ($numRE) x $valuesPerPoint) . ')'; $pointRE = qr/$pointRE/;