codexparser 0.1.17 → 0.1.19

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codexparser",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
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": {
@@ -235,7 +235,6 @@ class CodexParser {
235
235
  // Initialize the parsed passage object
236
236
  const parsedPassage = {
237
237
  original: passage.book + " " + passage.reference,
238
- hashed: book.toLowerCase().replace(/\s+/, "_") + "." + passage.reference.replace(/[:\.]/g, "."), // Handle both : and .
239
238
  book: book,
240
239
  chapter: null,
241
240
  verses: [], // Verse stored as an array
@@ -344,6 +343,7 @@ class CodexParser {
344
343
  }
345
344
  }
346
345
  parsedPassage.passages = this.populate(parsedPassage)
346
+ parsedPassage.scripture = this.scripturize(parsedPassage)
347
347
  })
348
348
 
349
349
  parsedPassage.valid = this._isValid(parsedPassage, passage.reference)