Skip to content

Commit

Permalink
v 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jaanonim committed Feb 6, 2024
1 parent 35aded9 commit 6c572f1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
15 changes: 11 additions & 4 deletions src/Books.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down Expand Up @@ -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<string> {
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 6c572f1

Please sign in to comment.