codexparser 0.0.35 → 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 +3 -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,8 @@ class CodexParser {
|
|
|
135
135
|
this.passages.push(firstPassage)
|
|
136
136
|
//console.log(this.passages)
|
|
137
137
|
}
|
|
138
|
+
this.found = []
|
|
139
|
+
return this
|
|
138
140
|
//console.log(booksWithResults)
|
|
139
141
|
/* for (let i = 0; i < this.found.length; i++) {
|
|
140
142
|
const hasChapterRange = this.found[i].match(/(?<=-\s?)\b\d+[.:].+\b/)
|
|
@@ -199,7 +201,7 @@ class CodexParser {
|
|
|
199
201
|
* @return {string|undefined} The full name of the book if found, otherwise undefined.
|
|
200
202
|
*/
|
|
201
203
|
bookify(book) {
|
|
202
|
-
if(typeof book !== "string") {
|
|
204
|
+
if (typeof book !== "string") {
|
|
203
205
|
book = book[0]
|
|
204
206
|
}
|
|
205
207
|
let bookified
|