mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-23 15:30:14 -04:00
fixed small ref parsing error.
This commit is contained in:
parent
756d7b0561
commit
2ef94ada3c
@ -12,14 +12,20 @@
|
||||
<meta name="copyright" content="All content copyrighted to Jason Wall, and available by permission of the owner." />
|
||||
<title>The Bible with Strong's Numbers and Cross References</title>
|
||||
<script type="text/javascript" src="js/jquery.min.js"></script>
|
||||
<!--<script type="text/javascript" src="js/bible_ref_parsing.js"></script>-->
|
||||
<script type="text/javascript" src="js/bible_ref_parsing.min.js"></script>
|
||||
<script type="text/javascript" src="js/bible_ref_parsing.js"></script>
|
||||
<!--<script type="text/javascript" src="js/bible_ref_parsing.min.js"></script>-->
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
var tests = [
|
||||
["acts 1:4 - 2:8", "Acts 1:4 - 2:8"],
|
||||
["acts 1:4 - 60", "Acts 1:4 - 1:60"],
|
||||
["acts 1:4 - *", "Acts 1:4 - 1:*"],
|
||||
["acts 1:4 - 2:8", "Acts 1:4 - 2:8"],
|
||||
["acts 1:4 - 1:8", "Acts 1:4 - 1:8"],
|
||||
["acts 1:4 - 2", "Acts 1:4 - 1:4"],
|
||||
|
||||
["acts 1:4 - 8", "Acts 1:4 - 1:8"],
|
||||
["acts 1:4-8", "Acts 1:4 - 1:8"],
|
||||
["john 1:4 - john 2", "John 1:4 - 2:*"],
|
||||
["john 1 : 4 - john 2", "John 1:4 - 2:*"],
|
||||
["I john 1:4 - I john 2", "1 John 1:4 - 2:*"],
|
||||
|
@ -570,7 +570,7 @@ function Reference(ref)
|
||||
{
|
||||
this.startchapter = this.endchapter;
|
||||
}
|
||||
if (this.startchapter == this.endchapter && this.startverse > this.endverse)
|
||||
if (this.startchapter == this.endchapter && this.startverse > this.endverse && this.endverse != "*")
|
||||
{
|
||||
this.endverse = this.startverse;
|
||||
}
|
||||
|
2
js/bible_ref_parsing.min.js
vendored
2
js/bible_ref_parsing.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user