From 3685e2bf2c8026f9b513a8d5a58769d7388005f2 Mon Sep 17 00:00:00 2001 From: shugo Date: Wed, 1 Nov 2000 02:48:47 +0000 Subject: shugo * lib/net/imap.rb (ResponseParser#section): accept empty section. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/imap.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/net/imap.rb') diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 9d0ef02841..06690ddebc 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -1288,7 +1288,11 @@ module Net str = "" token = match(T_LBRA) str.concat(token.value) - token = match(T_ATOM, T_NUMBER) + token = match(T_ATOM, T_NUMBER, T_RBRA) + if token.symbol == T_RBRA + str.concat(token.value) + return str + end str.concat(token.value) token = lookahead if token.symbol == T_SPACE -- cgit v1.2.3