twl-generator 1.4.2 → 1.4.3

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": "twl-generator",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Generate term-to-article lists from unfoldingWord en_tw archive for Bible books. Works in both Node.js (CLI) and React.js (browser) environments.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -38,7 +38,7 @@ async function processZipBuffer(zipBuffer) {
38
38
  const content = await entry.getData(); // Await the async string content
39
39
  const firstLine = content.split('\n')[0];
40
40
  const terms = firstLine.replace(/^#/, '').trim().split(',').map(t => t.trim()).filter(Boolean);
41
- const truncated = entry.entryName.replace('en_tw/bible/', '');
41
+ const truncated = entry.entryName.replace('en_tw/bible/', '').replace(/\.md$/, '');
42
42
 
43
43
  for (const term of terms) {
44
44
  // Normalize terms by removing parentheses and spaces before them