scripture-guide 1.0.46 → 1.0.48

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.
@@ -107,8 +107,7 @@ function findMatchIndexes(content, matches,lookupReference, lang_extra) {
107
107
  }).flat()
108
108
  .map(a=>{
109
109
 
110
- const substring = content.substring(a[0],a[1]).replace(tail,"").trim();
111
- console.log({a,substring});
110
+ const substring = content.substring(a[0],a[1]).trim().replace(tail,"").trim();
112
111
  if(!substring) return false;
113
112
  const verse_ids = lookupReference(substring).verse_ids;
114
113
  console.log({a,substring,verse_ids});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scripture-guide",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "A utility for biblical and scripture reference parsing that enables structured queries based on strings of traditional scripture references (e.g. John 3:16). ",
5
5
  "main": "scriptures-compiled.js",
6
6
  "scripts": {
@@ -232,9 +232,7 @@ var cleanReference = function cleanReference(messyReference) {
232
232
  ref = ref.replace(/\s+/g, " "); //remove double spaces
233
233
  ref = ref.replace(/\s*[~–-]\s*/g, "-"); //remove spaces around dashes
234
234
  ref = ref.replace(/;(\S+)/g, "; $1"); //add space after semicolons
235
- console.log({
236
- ref: ref
237
- });
235
+
238
236
  var cleanReference = ref.trim();
239
237
  cleanReference = handleSingleChapterBookRefs(cleanReference);
240
238
  if (!cleanReference.match(/:/)) cleanReference = cleanReference.replace(/,/, "; ");
package/scriptures.js CHANGED
@@ -227,7 +227,6 @@ const cleanReference = function(messyReference) {
227
227
  ref = ref.replace(/\s+/g, " "); //remove double spaces
228
228
  ref = ref.replace(/\s*[~–-]\s*/g, "-"); //remove spaces around dashes
229
229
  ref = ref.replace(/;(\S+)/g, "; $1"); //add space after semicolons
230
- console.log({ref});
231
230
 
232
231
  let cleanReference = ref.trim();
233
232