diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-03-08 17:38:37 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-03-08 17:38:37 +0900 |
commit | 2b7409a2f2aaab1368c57e1cd03c12b2b8972fa9 (patch) | |
tree | 1d3d2d2c5c91cd732fc093f0245acf6d67bf718c /lib/net | |
parent | 53efe6328057ccb604a81541080aab3b3e1268d7 (diff) |
Specify explicit separator not to be affected by $;
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/pop.rb | 2 | ||||
-rw-r--r-- | lib/net/smtp.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/pop.rb b/lib/net/pop.rb index 8712345301..30161105f9 100644 --- a/lib/net/pop.rb +++ b/lib/net/pop.rb @@ -970,7 +970,7 @@ module Net getok('UIDL') table = {} @socket.each_list_item do |line| - num, uid = line.split + num, uid = line.split(' ') table[num.to_i] = uid end return table diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index da8c3f26b1..801f662d01 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -1042,7 +1042,7 @@ module Net return {} unless @string[3, 1] == '-' h = {} @string.lines.drop(1).each do |line| - k, *v = line[4..-1].split + k, *v = line[4..-1].split(' ') h[k] = v end h |