From ecdb0df36a280095a1a0517119f5f8943db072a7 Mon Sep 17 00:00:00 2001 From: abbasou <68356554+abbasou@users.noreply.github.com> Date: Sun, 12 May 2024 16:52:09 -0600 Subject: [PATCH] Update BibleAPIDotComProvider.ts --- src/provider/BibleAPIDotComProvider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/provider/BibleAPIDotComProvider.ts b/src/provider/BibleAPIDotComProvider.ts index 2faec5c..7c00191 100644 --- a/src/provider/BibleAPIDotComProvider.ts +++ b/src/provider/BibleAPIDotComProvider.ts @@ -20,7 +20,7 @@ export class BibleAPIDotComProvider extends BaseBibleAPIProvider { verses: number[], versionName?: string ): string { - let queryString = `${bookName}+${chapter}:`.replace(/ /g, '+') + let queryString = `${bookName}+${chapter}:` queryString += this.convertVersesToQueryString(verses) this._currentQueryUrl = `${this._apiUrl}/${queryString}?translation=${ versionName @@ -31,7 +31,7 @@ export class BibleAPIDotComProvider extends BaseBibleAPIProvider { }` // setup the bible gateway url - this.bibleGatewayUrl = this.buildBibleGatewayUrl(bookName, chapter, verses) + this.bibleGatewayUrl = this.buildBibleGatewayUrl(bookName, chapter, verses).replace(/ /g, "+") // Remove spaces in Book names for URL. return this._currentQueryUrl }