This commit is contained in:
AmjadHD
2022-10-02 16:13:57 +01:00
parent 79a2963a21
commit 1ceec7a06e

View File

@@ -158,7 +158,7 @@ proc encode*[T: byte|char](s: openArray[T], safe = false): string =
assert encode("Hello World") == "SGVsbG8gV29ybGQ="
assert encode(['n', 'i', 'm']) == "bmlt"
assert encode(@['n', 'i', 'm']) == "bmlt"
assert encode([1, 2, 3, 4, 5]) == "AQIDBAU="
assert encode([1'u8, 2, 3, 4, 5]) == "AQIDBAU="
encodeImpl()
proc encodeMime*(s: string, lineLen = 75.Positive, newLine = "\r\n"): string =