Skip to content

Commit

Permalink
Merge pull request #22 from majal/bug-fix
Browse files Browse the repository at this point in the history
Temporary fix for bug on James linked as Es(ther)
  • Loading branch information
majal committed Jul 13, 2022
2 parents b42e215 + 8fa0355 commit 8542a68
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Code.gs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ function bible_linker(bible_version) {
var nwt_bookAbbrev2 = consts('nwt_bookAbbrev2');

// Run parser for each Bible name
for (let n=0; n < nwt_bookAbbrev2.length; n++) {
bible_search(doc, bible_version, nwt_bookAbbrev2[n], n+1);
}

for (let n=0; n < nwt_bookAbbrev1.length; n++) {
bible_search(doc, bible_version, nwt_bookAbbrev1[n], n+1);
}

for (let n=0; n < nwt_bookName.length; n++) {
if (Array.isArray(nwt_bookName[n])) {
for (let m=0; m < nwt_bookName[n].length; m++) {
Expand All @@ -104,12 +112,6 @@ function bible_linker(bible_version) {
}
}

for (let n=0; n < nwt_bookAbbrev1.length; n++) {
bible_search(doc, bible_version, nwt_bookAbbrev1[n], n+1);
}
for (let n=0; n < nwt_bookAbbrev2.length; n++) {
bible_search(doc, bible_version, nwt_bookAbbrev2[n], n+1);
}
}


Expand Down

0 comments on commit 8542a68

Please sign in to comment.