From 3992a63fc04ba2429c5223ec3e73a6ff8a12b1f5 Mon Sep 17 00:00:00 2001 From: Ryan Carpenter Date: Tue, 9 Aug 2016 20:28:56 +0800 Subject: [PATCH] debugging getChapterId() --- js/services.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/services.js b/js/services.js index 6684a35..470e253 100644 --- a/js/services.js +++ b/js/services.js @@ -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); }