From 13c2e33055c76b853ddb869ad774b25cf54f48a7 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Mon, 24 Aug 2026 21:40:22 -0600 Subject: [PATCH] Fix "ff" parsing. --- src/utils/modal.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/utils/modal.js b/src/utils/modal.js index 292f026..b9cddb7 100644 --- a/src/utils/modal.js +++ b/src/utils/modal.js @@ -62,7 +62,6 @@ class Refs { const bt = bookTransforms[this._book]; if ('match' in bt) { if ('ts' in bt.match && this._ts.indexOf(bt.match.ts) == -1) { - console.log('not matched'); return this.getChapter(); } } @@ -74,14 +73,14 @@ class Refs { return this.getChapter(); } getVerse() { + if (typeof(this._verse) === 'string' && this._verse.endsWith('ff')) { + return [parseInt(this._verse.substring(0, this._verse.length-2)), 'ff']; + } if (typeof(this._verse) === 'number' || (typeof(this._verse) === 'string' && this._verse.indexOf('-') == -1)) { return parseInt(this._verse); } - if (typeof(this._verse) === 'string' && this._verse.endsWidth('ff')) { - return [parseInt(this._verse.substr(0, this._verse.length-2)), 'ff']; - } - return [parseInt(this._verse.substr(0, this._verse.indexOf('-'))), - parseInt(this._verse.substr(this._verse.indexOf('-')+1))]; + return [parseInt(this._verse.substring(0, this._verse.indexOf('-'))), + parseInt(this._verse.substring(this._verse.indexOf('-')+1))]; } get verse() { if (this._book in bookTransforms) {