Rename BIBLE_BOOKS array to ESVAPI_BIBLE_BOOKS
This commit is contained in:
parent
2e4b067e49
commit
04aea47d80
1 changed files with 2 additions and 2 deletions
4
esv.d
4
esv.d
|
@ -45,7 +45,7 @@ import std.utf : toUTF8;
|
|||
import std.net.curl;
|
||||
|
||||
const enum ESVAPI_URL = "https://api.esv.org/v3/passage";
|
||||
const string[] BIBLE_BOOKS = [
|
||||
const string[] ESVAPI_BIBLE_BOOKS = [
|
||||
// Old Testament
|
||||
"Genesis",
|
||||
"Exodus",
|
||||
|
@ -193,7 +193,7 @@ class EsvAPI
|
|||
*/
|
||||
final bool validateBook(const string book) const nothrow
|
||||
{
|
||||
foreach (string b; BIBLE_BOOKS)
|
||||
foreach (string b; ESVAPI_BIBLE_BOOKS)
|
||||
{
|
||||
if (book.capitalize() == b.capitalize())
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue