From 2ae7df680bde9b55002bff30b258bf806c5f2f43 Mon Sep 17 00:00:00 2001 From: mtkennerly Date: Fri, 24 Jun 2022 00:37:56 +0800 Subject: [PATCH] Fix template name only checking first letter --- data/manifest.yaml | 4 ++-- src/wiki.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/manifest.yaml b/data/manifest.yaml index df7a7e01..ce6568ca 100644 --- a/data/manifest.yaml +++ b/data/manifest.yaml @@ -499172,12 +499172,12 @@ The Lord of the Rings Online: - os: windows 'The Lord of the Rings: The Return of the King': files: - /: + /LOTR Return of the King Data: tags: - save when: - os: windows - //ROTK.ini: + /LOTR Return of the King Data/ROTK.ini: tags: - config when: diff --git a/src/wiki.ts b/src/wiki.ts index 6dbb3e19..7cd95111 100644 --- a/src/wiki.ts +++ b/src/wiki.ts @@ -241,7 +241,7 @@ interface PathCell { } function stringifyTransclusionCell(cell: PathCell): [string, boolean] { - const templateName = cell[0][0] as string; + const templateName = cell[0] as string; switch (templateName.toLowerCase()) { case "p": case "path":