diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-03-19 04:32:36 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-03-19 04:37:08 +0900 |
| commit | f2424f306be40e27c76def020ecb2ce1ec2aad4e (patch) | |
| tree | 4ab51d9d20707dac51a4a2be60bc476bbac9bdbd /nuldoc-src/docbook/document.ts | |
| parent | ca7a609fef1167374f7c36ae87be154b0142dd47 (diff) | |
| download | blog.nsfisis.dev-f2424f306be40e27c76def020ecb2ce1ec2aad4e.tar.gz blog.nsfisis.dev-f2424f306be40e27c76def020ecb2ce1ec2aad4e.tar.zst blog.nsfisis.dev-f2424f306be40e27c76def020ecb2ce1ec2aad4e.zip | |
refactor: change type of Revision.date
Diffstat (limited to 'nuldoc-src/docbook/document.ts')
| -rw-r--r-- | nuldoc-src/docbook/document.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuldoc-src/docbook/document.ts b/nuldoc-src/docbook/document.ts index 9f3221b..677c827 100644 --- a/nuldoc-src/docbook/document.ts +++ b/nuldoc-src/docbook/document.ts @@ -1,7 +1,7 @@ import { join } from "std/path/mod.ts"; import { Config } from "../config.ts"; import { DocBookError } from "../errors.ts"; -import { Revision } from "../revision.ts"; +import { Revision, stringToDate } from "../revision.ts"; import { Element, findChildElements, @@ -82,7 +82,7 @@ export function createNewDocumentFromRootElement( } return { number: i + 1, - date: innerText(dateElement).trim(), + date: stringToDate(innerText(dateElement).trim()), remark: innerText(revremarkElement).trim(), }; }, |
