hebrew-transliteration 2.0.6 → 2.0.7
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/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Text as Text3 } from "havarotjs";
|
|
|
3
3
|
|
|
4
4
|
// src/sequence.ts
|
|
5
5
|
import { Text } from "havarotjs";
|
|
6
|
-
var vowels = /[\u{05B0}-\u{
|
|
6
|
+
var vowels = /[\u{05B0}-\u{05BC}\u{05C7}]/u;
|
|
7
7
|
var sequence = (text, qametsQatan = false) => {
|
|
8
8
|
return vowels.test(text) ? new Text(text, { qametsQatan }).text : text;
|
|
9
9
|
};
|
|
@@ -372,7 +372,7 @@ var transliterate = (text, schema) => {
|
|
|
372
372
|
const isText = text instanceof Text2;
|
|
373
373
|
if (!isText && !vowels.test(text)) {
|
|
374
374
|
const sin = new RegExp(transSchema.SHIN + "\u05C2", "gu");
|
|
375
|
-
return mapChars(text, transSchema).replace(sin, transSchema.SIN).replace(
|
|
375
|
+
return mapChars(text, transSchema).replace(sin, transSchema.SIN).replace(/[\u{0590}-\u{05AF}\u{05BD}-\u{05C6}]/gu, "");
|
|
376
376
|
}
|
|
377
377
|
const sylOptions = getSylOpts(transSchema != null ? transSchema : {});
|
|
378
378
|
const newText = isText ? text : new Text2(text, sylOptions);
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var import_havarotjs3 = require("havarotjs");
|
|
|
31
31
|
|
|
32
32
|
// src/sequence.ts
|
|
33
33
|
var import_havarotjs = require("havarotjs");
|
|
34
|
-
var vowels = /[\u{05B0}-\u{
|
|
34
|
+
var vowels = /[\u{05B0}-\u{05BC}\u{05C7}]/u;
|
|
35
35
|
var sequence = (text, qametsQatan = false) => {
|
|
36
36
|
return vowels.test(text) ? new import_havarotjs.Text(text, { qametsQatan }).text : text;
|
|
37
37
|
};
|
|
@@ -400,7 +400,7 @@ var transliterate = (text, schema) => {
|
|
|
400
400
|
const isText = text instanceof import_havarotjs2.Text;
|
|
401
401
|
if (!isText && !vowels.test(text)) {
|
|
402
402
|
const sin = new RegExp(transSchema.SHIN + "\u05C2", "gu");
|
|
403
|
-
return mapChars(text, transSchema).replace(sin, transSchema.SIN).replace(
|
|
403
|
+
return mapChars(text, transSchema).replace(sin, transSchema.SIN).replace(/[\u{0590}-\u{05AF}\u{05BD}-\u{05C6}]/gu, "");
|
|
404
404
|
}
|
|
405
405
|
const sylOptions = getSylOpts(transSchema != null ? transSchema : {});
|
|
406
406
|
const newText = isText ? text : new import_havarotjs2.Text(text, sylOptions);
|