From 6c572f1dc76826cc90fcb23b191cd1ab192e11d9 Mon Sep 17 00:00:00 2001 From: jaanonim Date: Tue, 6 Feb 2024 16:51:28 +0100 Subject: [PATCH] v 1.1.3 --- manifest.json | 2 +- package.json | 2 +- src/Books.ts | 15 +++++++++++---- versions.json | 3 ++- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/manifest.json b/manifest.json index 88a073c..08a9021 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "youversion-linker", "name": "YouVersion Linker", - "version": "1.1.2", + "version": "1.1.3", "minAppVersion": "0.15.0", "description": "Automatically link bible verses in your notes to YouVersion bible.", "author": "jaanonim", diff --git a/package.json b/package.json index 2681a95..7367268 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "youversion-linker", - "version": "1.1.2", + "version": "1.1.3", "description": "Obsidian plugin that automatically link bible verses to YouVersion bible.", "main": "main.js", "scripts": { diff --git a/src/Books.ts b/src/Books.ts index 1798790..9c148e0 100644 --- a/src/Books.ts +++ b/src/Books.ts @@ -5,8 +5,8 @@ import _nob from "../data/books/nob.json"; import _pl from "../data/books/pl.json"; import _ptBr from "../data/books/pt-br.json"; import _de from "../data/books/de.json"; -import _zhCN from "../data/books/zh_CN.json" -import _zhHK from "../data/books/zh_HK.json" +import _zhCN from "../data/books/zh-CN.json"; +import _zhHK from "../data/books/zh-HK.json"; const books = _books as { [key: string]: string[]; @@ -34,9 +34,16 @@ const zhHk = _zhHK as { [key: string]: string[]; }; - Object.keys(books).forEach((b) => { - books[b].push(...en[b], ...nob[b], ...pl[b], ...ptBr[b], ...de[b],...zhCn[b],...zhHk[b] ); + books[b].push( + ...en[b], + ...nob[b], + ...pl[b], + ...ptBr[b], + ...de[b], + ...zhCn[b], + ...zhHk[b] + ); }); export default function getBooks(str: string): Array { diff --git a/versions.json b/versions.json index b8bd06b..69e2a26 100644 --- a/versions.json +++ b/versions.json @@ -5,5 +5,6 @@ "1.0.3": "0.15.0", "1.1.0": "0.15.0", "1.1.1": "0.15.0", - "1.1.2": "0.15.0" + "1.1.2": "0.15.0", + "1.1.3": "0.15.0" } \ No newline at end of file