Skip to content

Commit

Permalink
Merge pull request #154 from diatche/bible-api-encode-path
Browse files Browse the repository at this point in the history
Fixed display of book names with spaces
  • Loading branch information
tim-hub committed Nov 25, 2023
2 parents 0ac39dd + 8635799 commit 88d235f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/provider/BibleAPIDotComProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class BibleAPIDotComProvider extends BaseBibleAPIProvider {
verses: number[],
versionName?: string
): string {
let queryString = `${bookName}+${chapter}:`
let queryString = `${bookName}+${chapter}:`.replace(/ /g, '+')
if (verses?.length >= 3) {
queryString += verses.join('&')
} else if (verses?.length === 2 && !!verses[1]) {
Expand Down

0 comments on commit 88d235f

Please sign in to comment.