We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
no-case
1 parent 00008ad commit 5bd5af6Copy full SHA for 5bd5af6
src/mezz/codec-mime-field.reb
@@ -24,6 +24,7 @@ register-codec [
24
][
25
output: either binary? data [ copy data ][ to binary! data ]
26
parse output [
27
+ no-case ; binary input is by default case-sensitive
28
any [
29
to ch-crlf= [
30
s: [#"^M" #"^/" | #"^/" #"^M" | #"^/"] some ch-space e: [
@@ -33,7 +34,8 @@ register-codec [
33
34
|
35
s: "=?" [
36
copy chr: to #"?" skip
- [[#"q" | #"Q"] (enc: #"q") | [#"b" | #"B"] (enc: #"b")] #"?"
37
+ ; q and b bellow are handled as case-insensitive!
38
+ [#"q" (enc: #"q") | #"b" (enc: #"b")] #"?"
39
copy txt: to "?=" 2 skip
40
;Any amount of linear-space-white between 'encoded-word's,
41
;even if it includes a CRLF followed by one or more SPACEs,
0 commit comments