scripture-guide 1.0.20 → 1.0.21
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/scriptlang.js +1 -0
- package/package.json +1 -1
- package/test-lang.js +7 -0
package/data/scriptlang.js
CHANGED
|
@@ -149,6 +149,7 @@ module.exports = {
|
|
|
149
149
|
i = i.replace(/\s*:\s*([0-9~]+)/g, "$1절");
|
|
150
150
|
i = i.replace(/;/g, "; ").replace(/\s+/g, " ").trim();
|
|
151
151
|
i = i.replace(/제\s*([3-4])장\s*니파이/g, "제$1니파이");
|
|
152
|
+
i = i.replace(/([0-9]+)장\s*([0-9]+)/g, "$1장 $2");
|
|
152
153
|
return i;
|
|
153
154
|
},
|
|
154
155
|
preProcess:(i)=>{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scripture-guide",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
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-lang.js
CHANGED
|
@@ -40,6 +40,13 @@ let testcases = [
|
|
|
40
40
|
["Numbered Books","요삼1.1"],
|
|
41
41
|
];
|
|
42
42
|
|
|
43
|
+
testcases = [
|
|
44
|
+
["test1","니파이전서 5장 1-4"],
|
|
45
|
+
["test1","니파이전서 5:1-4"],
|
|
46
|
+
["test1","니파이전서 5장"],
|
|
47
|
+
["test1","니전5.1-2"]
|
|
48
|
+
];
|
|
49
|
+
|
|
43
50
|
for (let i in testcases)
|
|
44
51
|
{
|
|
45
52
|
console.log("\n===================\n\nTEST CASE #"+(parseInt(i)+1)+": "+testcases[i][0]);
|