diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2020-07-14 15:24:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 15:24:17 -0400 |
commit | cde4dbb35132848ffece59ef9cfaccff32347124 (patch) | |
tree | cc7830968c6decde704c8cfb83c9185193dc698f /std/textproto/mod.ts | |
parent | 9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff) |
Use dprint for internal formatting (#6682)
Diffstat (limited to 'std/textproto/mod.ts')
-rw-r--r-- | std/textproto/mod.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/textproto/mod.ts b/std/textproto/mod.ts index 1d0d22715..b23ccee19 100644 --- a/std/textproto/mod.ts +++ b/std/textproto/mod.ts @@ -71,7 +71,7 @@ export class TextProtoReader { throw new Deno.errors.UnexpectedEof(); } else if (buf[0] == charCode(" ") || buf[0] == charCode("\t")) { throw new Deno.errors.InvalidData( - `malformed MIME header initial line: ${str(line)}` + `malformed MIME header initial line: ${str(line)}`, ); } @@ -84,7 +84,7 @@ export class TextProtoReader { let i = kv.indexOf(charCode(":")); if (i < 0) { throw new Deno.errors.InvalidData( - `malformed MIME header line: ${str(kv)}` + `malformed MIME header line: ${str(kv)}`, ); } @@ -110,7 +110,7 @@ export class TextProtoReader { } const value = str(kv.subarray(i)).replace( invalidHeaderCharRegex, - encodeURI + encodeURI, ); // In case of invalid header we swallow the error |