diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-04-15 20:43:09 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-04-15 20:43:09 -0700 |
commit | 4ebf4d0b5e8de5a79efa3811eb35ac8b85f26b07 (patch) | |
tree | 586b58d1d5ba00bea8d5c3896b398a711868adbf | |
parent | 7551c8b6c84437b5f638c1a1cc9aad49f66b8060 (diff) | |
download | ruby-libmpd-4ebf4d0b5e8de5a79efa3811eb35ac8b85f26b07.tar.gz ruby-libmpd-4ebf4d0b5e8de5a79efa3811eb35ac8b85f26b07.tar.xz |
Correct splitting of fields with colons in values.
-rw-r--r-- | libmpd.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |