fixed small ref parsing error.

This commit is contained in:
jwall@VAPPRCSN015.vap.local 2011-11-14 10:03:17 -05:00
parent 756d7b0561
commit 2ef94ada3c
3 changed files with 11 additions and 5 deletions

View File

@ -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:*"],

View File

@ -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;
}

File diff suppressed because one or more lines are too long