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/slide/slide.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/slide/slide.ts')
| -rw-r--r-- | nuldoc-src/slide/slide.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuldoc-src/slide/slide.ts b/nuldoc-src/slide/slide.ts index 859bd56..a982d4f 100644 --- a/nuldoc-src/slide/slide.ts +++ b/nuldoc-src/slide/slide.ts @@ -1,6 +1,6 @@ import { Config } from "../config.ts"; import { SlideError } from "../errors.ts"; -import { Revision } from "../revision.ts"; +import { Revision, stringToDate } from "../revision.ts"; import { Element, findChildElements, @@ -99,7 +99,7 @@ export function createNewSlideFromRootElement( } return { number: i + 1, - date: innerText(dateElement).trim(), + date: stringToDate(innerText(dateElement).trim()), remark: innerText(revremarkElement).trim(), }; }, |
