diff options
author | Andy Shevchenko <andy@smile.org.ua> | 2012-03-24 18:13:25 +0000 |
---|---|---|
committer | Andy Shevchenko <andy@smile.org.ua> | 2012-03-24 18:13:25 +0000 |
commit | 83c07bbb5f45cda4ef13b7b2090a86983018435e (patch) | |
tree | 38f3855029c61c89061271bcf725c9aa65eb6dc7 /renrot | |
parent | 9f7b7c3cc9ea8ed396d79cfa084d76ada60b5773 (diff) | |
download | renrot-83c07bbb5f45cda4ef13b7b2090a86983018435e.tar.gz renrot-83c07bbb5f45cda4ef13b7b2090a86983018435e.tar.bz2 |
fix bug in trim_value()
The trim_value() doesn't match one-character values. Fix this by
removing heading and trailing spaces separately.
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
git-svn-id: file:///svnroot/renrot/trunk@599 fe2816f4-e837-0410-b10a-f608c9d244a1
Diffstat (limited to 'renrot')
-rwxr-xr-x | renrot | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -622,7 +622,8 @@ sub getOptions { # See Also : N/A sub trim_value { my $value = shift; - $value =~ s/\s*([^\s]+.*[^\s]+)\s*/$1/; + $value =~ s/^\s*//; # heading + $value =~ s/\s*$//; # trailing return $value; } |