scripture-guide 1.0.54 → 1.0.55
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/data/scriptdetect.js +1 -1
- package/package.json +1 -1
- package/test/data/en.txt +1 -2
package/data/scriptdetect.js
CHANGED
|
@@ -11,7 +11,7 @@ const findMatches = (content,books,lang_extra) => {
|
|
|
11
11
|
const tail = lang_extra.tail ? new RegExp(lang_extra.tail,"ig") : /[^0-9]+$/;
|
|
12
12
|
const preBookMatch = lang_extra.book || `(First|I|1|1st|Second|II|2|2nd|Third|III|3|3rd|Fourth|IV|4|4th)*\\s*(books* of)*\\s*`;
|
|
13
13
|
const matchingBooks = findMatchingBooks(content,books);
|
|
14
|
-
const postBookMatch = lang_extra.chapter || "([0-9:.;,~
|
|
14
|
+
const postBookMatch = lang_extra.chapter || "([0-9:.;,~ —–-]|cf|(?:–))*[0-9]+";
|
|
15
15
|
const fullBookMatches = matchingBooks.map(bookMatch=>{
|
|
16
16
|
const patternString = preBookMatch + bookMatch ;
|
|
17
17
|
const pattern = (new RegExp(patternString,"ig"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scripture-guide",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.55",
|
|
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/test/data/en.txt
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* separately under 2 Nephi 2:10–11 in part 1
|
|
1
|
+
Peter testified that Christ was the “lamb without blemish and without spot, who verily was foreordained before the foundation of the world” (1 Peter 1:19-20). In the words of John the Revelator, Christ was the “Lamb slain from the foundation of the world” (Revelation 13:8). Such expressions affirm that the plan of salvation was known and taught even before the creation of the earth (see D&C 132:8-11).
|