codexparser 0.0.82 → 0.0.84

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.0.82",
3
+ "version": "0.0.84",
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": {
@@ -181,7 +181,8 @@ class CodexParser {
181
181
  }
182
182
 
183
183
  if (verses.length > 1) {
184
- const hasDashes = verses.find((verse) => verse.includes("-"))
184
+ dump(verses)
185
+ const hasDashes = verses.find((verse) => /[-–—]/gim.test(verse))
185
186
  if (hasDashes) {
186
187
  const newVerses = []
187
188
  for (let i = 0; i < verses.length; i++) {
package/tests/single.js CHANGED
@@ -3,7 +3,7 @@ const dump = require("../src/functions.js").dump
3
3
 
4
4
  const parser = new BibleParser()
5
5
 
6
- const text = "Genesis 22:1-2,14,19"
6
+ const text = "Genesis 22:2, 12"
7
7
 
8
8
  const passages = parser.parse(text).getPassages()
9
9