Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/net/imap/command_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def valid_nstring?(str)
# coerces using +to_s+
def string(str)
str = str.to_s
if str =~ LITERAL_REGEX
if str.b.match?(LITERAL_REGEX)
Literal.new(str)
else
QuotedString.new(str)
Expand Down