codexparser 0.0.44 → 0.0.46

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/bcv_test.js CHANGED
@@ -3,7 +3,7 @@ const text =
3
3
  "Joel 10:13 The passages Luke 2:32 and Lk 1:23 that we are looking at tonight 1 Cor 12:34 2 Cor 3:4 are found Jude 6, in Jude 5, Genesis 2:1 - 3:19, 1 John 3:16-17, 1 Peter 1:1, and Romans 10:13, 15, 17. Please turn in your Bibles. Ps 109:4,5,6,8. Isaiah 61.2-3 Mt 5.4"
4
4
  const single = "Ge 27.27-29,89-40 Heb 11.20 Heb. 12.17 Jonah 3"
5
5
  const jd = "Jd. 5"
6
- const cor = "Hos 1:1-3, 8 Song of Solomon 1:2, Song of Songs 2:2. Ezek 17:3. Ezekiel 17:3 He 10:13"
6
+ const cor = "Hos 1:1-3, 8 Song of Solomon 1:2, Song of Songs 2:2. Ezek 17:3. Ezekiel 17:3 He 10:13 Rev 12:13"
7
7
 
8
8
  const parser = new bcv_parser()
9
9
  const textParser = parser.parse(text + single + jd + cor.replace(/He/, "Hebrews"))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codexparser",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
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/quicktest.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const BibleParser = require("./src/CodexParser.js")
2
- const string = "Genesis 1:1 He 4.4"
2
+ const string = "Rev 12:18"
3
3
  const parser = new BibleParser()
4
4
  const result = parser.parse(string)
5
5
  console.log(result.getPassages())
@@ -15,9 +15,11 @@ class CodexParser {
15
15
  this.scripturesRegex = scripturesRegex
16
16
  this.abbrevations = abbrevations
17
17
  this.toc = toc
18
- this.crawler = new crawler({
19
- sequence_combination_strategy: "separate",
20
- })
18
+ this.crawler = new crawler()
19
+ }
20
+
21
+ options(options) {
22
+ this.crawler.set_options(options)
21
23
  }
22
24
 
23
25
  /**
@@ -1,5 +1,5 @@
1
1
  const BibleParser = require("./src/CodexParser.js")
2
- const string = "Ps 109:4,5,6, 8"
2
+ const string = "Rev 12:18"
3
3
  const parser = new BibleParser()
4
4
  const result = parser.parse(string)
5
5
  console.log(result.getPassages())