codexparser 0.1.1 → 0.1.2

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.1",
3
+ "version": "0.1.2",
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": {
@@ -165,7 +165,7 @@ class CodexParser {
165
165
  }
166
166
 
167
167
  // Trim any period from the end of the reference
168
- chapterVerse = chapterVerse.trim().replace(/[.,:;!?]+$/, "")
168
+ chapterVerse = chapterVerse.trim().replace(/[^a-zA-Z0-9]+$/, "")
169
169
 
170
170
  // Replace any periods within the reference with colons for easier parsing
171
171
  const formattedReference = chapterVerse.replace(/\./g, ":")