From f8e100047ca7d818eb33e14c8ae3ed41be5cac04 Mon Sep 17 00:00:00 2001 From: vipinpaul Date: Mon, 16 Mar 2020 12:15:06 +0530 Subject: [PATCH] Fixed the issue by initializing the verse number to zero #172 --- src/util/usfm_to_json.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/usfm_to_json.js b/src/util/usfm_to_json.js index 2cb5f57..b6da624 100644 --- a/src/util/usfm_to_json.js +++ b/src/util/usfm_to_json.js @@ -56,7 +56,8 @@ module.exports = { "chapter": parseInt(splitLine[1], 10) } verse = []; - c = parseInt(splitLine[1], 10) + c = parseInt(splitLine[1], 10); + vnum = 0; v = 0; } else if (splitLine[0] === '\\v') { if (c === 0)