From 4ebf4d0b5e8de5a79efa3811eb35ac8b85f26b07 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Thu, 15 Apr 2010 20:43:09 -0700 Subject: Correct splitting of fields with colons in values. --- libmpd.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmpd.rb') 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 -- cgit v1.2.3-70-g09d2