From d35835c5f95e1e2bc26a92d58909ce6f85190f2e Mon Sep 17 00:00:00 2001 From: nick evans Date: Fri, 8 Nov 2024 16:25:09 -0500 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Use=20SequenceSet[arg]=20f?= =?UTF-8?q?or=20search=20arg=20coercion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This catches invalid args slightly sooner. --- lib/net/imap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/imap.rb b/lib/net/imap.rb index f0d36435..05511dd3 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -3195,7 +3195,7 @@ def normalize_searching_criteria(criteria) return RawData.new(criteria) if criteria.is_a?(String) criteria.map {|i| if coerce_search_arg_to_seqset?(i) - SequenceSet.new(i) + SequenceSet[i] else i end