codexparser 0.1.73 → 0.1.74

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.73",
3
+ "version": "0.1.74",
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": {
@@ -153,8 +153,8 @@ class CodexParser {
153
153
  while (j < lowerCaseText.length && /\s/.test(lowerCaseText[j])) {
154
154
  j++
155
155
  }
156
- // Check for digit or colon indicating a reference
157
- if (j < lowerCaseText.length && /[\d:]/.test(lowerCaseText[j])) {
156
+ // Check for a digit (chapter number) to start a valid reference
157
+ if (j < lowerCaseText.length && /\d/.test(lowerCaseText[j])) {
158
158
  isFollowedByReference = true
159
159
  }
160
160
  } else {