codexparser 0.1.68 → 0.1.69

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.68",
3
+ "version": "0.1.69",
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": {
@@ -217,7 +217,6 @@ class CodexParser {
217
217
  }
218
218
  }
219
219
 
220
- console.log("Found references:", JSON.stringify(this.found, null, 2)) // Debug
221
220
  return this
222
221
  }
223
222
 
@@ -1098,7 +1097,6 @@ class CodexParser {
1098
1097
  */
1099
1098
  replace(text, useAbbreviations = true) {
1100
1099
  if (!this.passages.length) {
1101
- console.log("No parsed passages to replace")
1102
1100
  return text
1103
1101
  }
1104
1102
 
@@ -1123,11 +1121,8 @@ class CodexParser {
1123
1121
  // Preserve parentheses if present in the match
1124
1122
  const hasParens = match[1] === "(" && match[2] === ")"
1125
1123
  const replacement = hasParens ? `(${newReference})` : newReference
1126
- console.log(`Replacing "${match[0]}" with "${replacement}" at [${startIndex}, ${endIndex}]`)
1127
1124
  result = result.slice(0, startIndex) + replacement + result.slice(endIndex)
1128
1125
  }
1129
- } else {
1130
- console.log(`No match found for originalText "${originalText}"`)
1131
1126
  }
1132
1127
  }
1133
1128