codexparser 0.0.36 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/CodexParser.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codexparser",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.37",
|
|
4
4
|
"description": "This is a Javascript Bible parser and text scanner. It will search through texts and collate all scripture references into an array and parse them into objects, and it will parse passages into objects by book, chapter, verse, and testament. ",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
package/src/CodexParser.js
CHANGED
|
@@ -135,6 +135,7 @@ class CodexParser {
|
|
|
135
135
|
this.passages.push(firstPassage)
|
|
136
136
|
//console.log(this.passages)
|
|
137
137
|
}
|
|
138
|
+
this.found = []
|
|
138
139
|
return this
|
|
139
140
|
//console.log(booksWithResults)
|
|
140
141
|
/* for (let i = 0; i < this.found.length; i++) {
|
|
@@ -200,7 +201,7 @@ class CodexParser {
|
|
|
200
201
|
* @return {string|undefined} The full name of the book if found, otherwise undefined.
|
|
201
202
|
*/
|
|
202
203
|
bookify(book) {
|
|
203
|
-
if(typeof book !== "string") {
|
|
204
|
+
if (typeof book !== "string") {
|
|
204
205
|
book = book[0]
|
|
205
206
|
}
|
|
206
207
|
let bookified
|