From f72beed61d7c018e69ba167bb41204d142a466d4 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Wed, 2 Jan 2008 04:24:40 +0000 Subject: fix parse_response() regex to ignore trailing whitespace svn path=/branches/new-fu/; revision=315 --- client/scireclient.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scireclient.pl b/client/scireclient.pl index 15f323e..25e6c9b 100755 --- a/client/scireclient.pl +++ b/client/scireclient.pl @@ -101,7 +101,7 @@ sub send_command { sub parse_response { my $response = shift; - $response =~ /^(OK|ERROR)(?: (.+))?$/; + $response =~ /^(OK|ERROR)(?: (.+?))?\s*$/; my ($status, $message) = ($1, $2); return ($status, $message); } -- cgit v1.2.3-65-gdbad