summaryrefslogtreecommitdiff
path: root/encoding/toml.ts
diff options
context:
space:
mode:
authorAxetroy <axetroy.dev@gmail.com>2019-06-19 12:22:01 +0800
committerRyan Dahl <ry@tinyclouds.org>2019-06-18 21:22:01 -0700
commitc85b1c06a9804ad41fbccf8fe5a5689f28eb049e (patch)
treee855fc7c02baaa219aa81a2a54a69b19c1fb3716 /encoding/toml.ts
parentd6e92582cc2267210f71e893b14672783301f87b (diff)
lint: add max line length rules (denoland/deno_std#507)
Original: https://github.com/denoland/deno_std/commit/b04fda30c8949b6347094b898bfa427c0b9a6162
Diffstat (limited to 'encoding/toml.ts')
-rw-r--r--encoding/toml.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/encoding/toml.ts b/encoding/toml.ts
index e93903fae..8a53a8300 100644
--- a/encoding/toml.ts
+++ b/encoding/toml.ts
@@ -507,8 +507,9 @@ class Dumper {
const min = dtPad(value.getUTCMinutes().toString());
const s = dtPad(value.getUTCSeconds().toString());
const ms = dtPad(value.getUTCMilliseconds().toString(), 3);
- const fmtDate = `${value.getUTCFullYear()}-${m}-${d}T${h}:${min}:${s}.${ms}`;
- return `${this._declaration(title)}${fmtDate}`;
+ // formated date
+ const fData = `${value.getUTCFullYear()}-${m}-${d}T${h}:${min}:${s}.${ms}`;
+ return `${this._declaration(title)}${fData}`;
}
_format(): string[] {
const rDeclaration = /(.*)\s=/;