twl-generator 1.4.13 → 1.4.14

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.13",
3
+ "version": "1.4.14",
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": {
@@ -194,11 +194,11 @@ class PrefixTrie {
194
194
 
195
195
  // Check if this is a valid word boundary match (both start and end)
196
196
  const isStartBoundary = extendedStartPos === 0 ||
197
- /[\s\p{P}]/.test(originalText[extendedStartPos - 1]) ||
197
+ /[\s\p{P}]/u.test(originalText[extendedStartPos - 1]) ||
198
198
  !/[\w]/.test(originalText[extendedStartPos - 1]);
199
199
 
200
200
  const isEndBoundary = extendedEndPos >= originalText.length ||
201
- /[\s\p{P}]/.test(originalText[extendedEndPos]) ||
201
+ /[\s\p{P}]/u.test(originalText[extendedEndPos]) ||
202
202
  !/[\w]/.test(originalText[extendedEndPos]);
203
203
 
204
204
  const isWordBoundary = isStartBoundary && isEndBoundary;