FIX: fixed issue with reference parse, fixed issue with display of search buttons in browser

This commit is contained in:
walljm 2017-09-05 19:05:47 -04:00
parent ca2627a7b6
commit bb11af767b
2 changed files with 15 additions and 12 deletions

View File

@ -14,6 +14,7 @@
background-color: #fceeee;
margin: .3em;
text-align: center;
cursor: pointer;
}
ion-scroll {

View File

@ -397,6 +397,20 @@ export class Reference
{
return this.bookName(42);
}
// must come before the Gospel of John
if (fbook.search(/\b(1|i|1st|first)\s*(john|jn|jo)\b/i) !== -1)
{
return this.bookName(62);
}
if (fbook.search(/\b(2|ii|2nd|second|sec)\s*(john|jn|jo)\b/i) !== -1)
{
return this.bookName(63);
}
if (fbook.search(/\b(3|iii|3rd|third)\s*(john|jn|jo)\b/i) !== -1)
{
return this.bookName(64);
}
// 1, 2, and 3rd John need to come before this one, else this will catch those book references.
if (fbook.search(/\b(john|jn|jhn)\b/i) !== -1)
{
return this.bookName(43);
@ -473,18 +487,6 @@ export class Reference
{
return this.bookName(61);
}
if (fbook.search(/\b(1|i|1st|first)\s*(john|jn|jo)\b/i) !== -1)
{
return this.bookName(62);
}
if (fbook.search(/\b(2|ii|2nd|second|sec)\s*(john|jn|jo)\b/i) !== -1)
{
return this.bookName(63);
}
if (fbook.search(/\b(3|iii|3rd|third)\s*(john|jn|jo)\b/i) !== -1)
{
return this.bookName(64);
}
if (fbook.search(/\b(jude|ju)\b/i) !== -1)
{
return this.bookName(65);