summaryrefslogtreecommitdiff
path: root/libmpd.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-04-15 20:43:09 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-04-15 20:43:09 -0700
commit4ebf4d0b5e8de5a79efa3811eb35ac8b85f26b07 (patch)
tree586b58d1d5ba00bea8d5c3896b398a711868adbf /libmpd.rb
parent7551c8b6c84437b5f638c1a1cc9aad49f66b8060 (diff)
downloadruby-libmpd-4ebf4d0b5e8de5a79efa3811eb35ac8b85f26b07.tar.gz
ruby-libmpd-4ebf4d0b5e8de5a79efa3811eb35ac8b85f26b07.tar.xz
Correct splitting of fields with colons in values.
Diffstat (limited to 'libmpd.rb')
-rw-r--r--libmpd.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpd.rb b/libmpd.rb
index 2240c9b..88df927 100644
--- a/libmpd.rb
+++ b/libmpd.rb
@@ -77,7 +77,7 @@ class MPD
hash = Hash.new
str.split("\n").each do |line|
- field, value = line.split(': ')
+ field, value = line.split(': ', 2)
hash[field.downcase.to_sym] = value
end