mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-26 13:20:05 +03:00
Clean up stupid code
This commit is contained in:
parent
a2bec4b4fa
commit
ca4adf991f
1 changed files with 1 additions and 3 deletions
4
email.d
4
email.d
|
@ -1174,9 +1174,7 @@ alias base64decode = Base64.decoder;
|
|||
immutable(ubyte[]) decodeBase64Mime(string encodedPart) {
|
||||
return cast(immutable(ubyte[])) encodedPart
|
||||
.byChar // prevent Autodecoding, which will break Base64 decoder. Since its base64, it's guarenteed to be 7bit ascii
|
||||
.filter!((c) => c != '\r')
|
||||
.splitter!((c) => c == '\n')
|
||||
.joiner
|
||||
.filter!((c) => (c != '\r') & (c != '\n'))
|
||||
.base64decode
|
||||
.array;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue