From 8c9e96ad77fa1bf64a938a6d9c1905a168c7bf71 Mon Sep 17 00:00:00 2001
From: tong_1001 <sxt1001@qq.com>
Date: Mon, 22 Jun 2026 10:15:23 +0800
Subject: [PATCH] fix dynamic constant assignment (SyntaxError)
.bundle/gems/net-imap-0.3.4/lib/net/imap/command_data.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -245,13 +245,13 @@ module Net
end
class Atom < CommandData # :nodoc:
+ ATOM_SPECIALS = /[(){ \x00-\x1f\x7f%*"\\\]]/n
def initialize(**)
super
validate
end
def validate
- ATOM_SPECIALS = /[(){ \x00-\x1f\x7f%*"\\\]]/n
data.to_s.ascii_only? \
or raise DataFormatError, "#{self.class} must be ASCII only"
data.match?(ATOM_SPECIALS) \
--
2.43.0