mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-25 00:09:54 -04:00
FIX: fixed issue with reference parse, fixed issue with display of search buttons in browser
This commit is contained in:
parent
ca2627a7b6
commit
bb11af767b
@ -14,6 +14,7 @@
|
||||
background-color: #fceeee;
|
||||
margin: .3em;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
ion-scroll {
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user