From c85b1c06a9804ad41fbccf8fe5a5689f28eb049e Mon Sep 17 00:00:00 2001 From: Axetroy Date: Wed, 19 Jun 2019 12:22:01 +0800 Subject: lint: add max line length rules (denoland/deno_std#507) Original: https://github.com/denoland/deno_std/commit/b04fda30c8949b6347094b898bfa427c0b9a6162 --- textproto/mod.ts | 6 ++++-- textproto/reader_test.ts | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'textproto') diff --git a/textproto/mod.ts b/textproto/mod.ts index 6c4e42e51..419a57b68 100644 --- a/textproto/mod.ts +++ b/textproto/mod.ts @@ -106,8 +106,10 @@ export class TextProtoReader { //let key = canonicalMIMEHeaderKey(kv.subarray(0, endKey)); let key = str(kv.subarray(0, endKey)); - // As per RFC 7230 field-name is a token, tokens consist of one or more chars. - // We could return a ProtocolError here, but better to be liberal in what we + // As per RFC 7230 field-name is a token, + // tokens consist of one or more chars. + // We could return a ProtocolError here, + // but better to be liberal in what we // accept, so if we get an empty key, skip it. if (key == "") { continue; diff --git a/textproto/reader_test.ts b/textproto/reader_test.ts index dfe918282..2b81685a2 100644 --- a/textproto/reader_test.ts +++ b/textproto/reader_test.ts @@ -52,7 +52,8 @@ test({ name: "[textproto] Reader : MIME Header", async fn(): Promise { const input = - "my-key: Value 1 \r\nLong-key: Even Longer Value\r\nmy-Key: Value 2\r\n\n"; + "my-key: Value 1 \r\nLong-key: Even Longer Value\r\nmy-Key: " + + "Value 2\r\n\n"; const r = reader(input); const m = assertNotEOF(await r.readMIMEHeader()); assertEquals(m.get("My-Key"), "Value 1, Value 2"); -- cgit v1.2.3