scripture-guide 1.0.53 → 1.0.54
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 +1 -1
- package/scriptures-compiled.js +7 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scripture-guide",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.54",
|
|
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": {
|
package/scriptures-compiled.js
CHANGED
|
@@ -242,12 +242,12 @@ var handleSingleChapterBookRefs = function handleSingleChapterBookRefs(ref) {
|
|
|
242
242
|
var singleChapterBooks = Object.keys(raw_index).filter(function (book) {
|
|
243
243
|
return loadMaxChapter(book) == 1;
|
|
244
244
|
});
|
|
245
|
-
var
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
245
|
+
var _singleChapterBooks$f = singleChapterBooks.filter(function (book) {
|
|
246
|
+
return ref.match(new RegExp("^".concat(book, " \\d+")));
|
|
247
|
+
}),
|
|
248
|
+
_singleChapterBooks$f2 = _slicedToArray(_singleChapterBooks$f, 1),
|
|
249
|
+
matchingBook = _singleChapterBooks$f2[0];
|
|
250
|
+
ref = ref.replace(new RegExp("^".concat(matchingBook, " ([^:]+)$")), "".concat(matchingBook, " 1:$1"));
|
|
251
251
|
return ref;
|
|
252
252
|
};
|
|
253
253
|
var splitReferences = function splitReferences(compoundReference) {
|
|
@@ -566,6 +566,7 @@ module.exports = {
|
|
|
566
566
|
generate: generateReference,
|
|
567
567
|
verseId2Ref: generateReference,
|
|
568
568
|
detect: detectReferences,
|
|
569
|
+
detectScriptureReferences: detectReferences,
|
|
569
570
|
detectRefs: detectReferences,
|
|
570
571
|
detectScriptures: detectReferences,
|
|
571
572
|
linkRefs: detectReferences
|