debugging getChapterId()

This commit is contained in:
Ryan Carpenter
2016-08-09 20:28:56 +08:00
parent a02060ab06
commit 3992a63fc0
+1
View File
@@ -415,6 +415,7 @@ angular.module('quartermaester')
if (chapterKey=="") return -1;
if (chapterKey=="TWOW-?") return 344;
var reMatch = /(\w{4})\-(\d+)/.exec(chapterKey);
console.log("chapterKey", chapterKey, reMatch);
var precedingChapters = parseInt(qmData.bookLookup[ reMatch[1] ].precedingChapters, 10)
return precedingChapters + parseInt(reMatch[2], 10);
}