summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-11-01 02:48:47 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-11-01 02:48:47 +0000
commit3685e2bf2c8026f9b513a8d5a58769d7388005f2 (patch)
treeb9b8320b3a4e3d01605a8ae74b795d7d9ae3084b /lib/net
parentfab538ba837d0a6e2b145228ce23d22cfe4515d5 (diff)
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
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/imap.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index 9d0ef02..06690dd 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