taraskevizer 5.3.0 → 5.3.1
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.cjs +8 -3
- package/dist/index.js +8 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2063,7 +2063,8 @@ var afterTarask = [
|
|
|
2063
2063
|
]
|
|
2064
2064
|
];
|
|
2065
2065
|
var applyNoFix = (arr2, text) => arr2.length ? text.replace(NOFIX_REGEX, () => arr2.shift()) : text;
|
|
2066
|
-
var
|
|
2066
|
+
var afterJoin = (text) => text.replace(/ /g, " ").replace(new RegExp(" (\\p{P}|\\p{S}|\\d|() ", "gu"), "$1");
|
|
2067
|
+
var join = (textArr) => afterJoin(textArr.join(" "));
|
|
2067
2068
|
var finalize = (text, newLine) => text.replace(/ \t /g, " ").replace(/ \n /g, newLine).trim();
|
|
2068
2069
|
var replaceG = (text, replacer) => text.replace(
|
|
2069
2070
|
G_REGEX,
|
|
@@ -2160,7 +2161,11 @@ var Taraskevizer = class {
|
|
|
2160
2161
|
const origInTargetAlphabet = convertAlphabet(text, this.abc);
|
|
2161
2162
|
text = this.process(text, origInTargetAlphabet);
|
|
2162
2163
|
if (this.nonHtml.ansiColors)
|
|
2163
|
-
text = highlightChanges(
|
|
2164
|
+
text = highlightChanges(
|
|
2165
|
+
text,
|
|
2166
|
+
afterJoin(origInTargetAlphabet),
|
|
2167
|
+
wrapInColorOf.fix
|
|
2168
|
+
);
|
|
2164
2169
|
if (this.abc === ALPHABET.CYRILLIC && (this.nonHtml.h || this.nonHtml.ansiColors))
|
|
2165
2170
|
text = replaceG(
|
|
2166
2171
|
text,
|
|
@@ -2183,7 +2188,7 @@ var Taraskevizer = class {
|
|
|
2183
2188
|
const origInTargetAlphabet = convertAlphabet(text, this.abc);
|
|
2184
2189
|
text = highlightChanges(
|
|
2185
2190
|
this.process(text, origInTargetAlphabet),
|
|
2186
|
-
origInTargetAlphabet,
|
|
2191
|
+
afterJoin(origInTargetAlphabet),
|
|
2187
2192
|
wrapInTag.fix
|
|
2188
2193
|
);
|
|
2189
2194
|
if (this.abc === ALPHABET.CYRILLIC)
|
package/dist/index.js
CHANGED
|
@@ -2032,7 +2032,8 @@ var afterTarask = [
|
|
|
2032
2032
|
]
|
|
2033
2033
|
];
|
|
2034
2034
|
var applyNoFix = (arr2, text) => arr2.length ? text.replace(NOFIX_REGEX, () => arr2.shift()) : text;
|
|
2035
|
-
var
|
|
2035
|
+
var afterJoin = (text) => text.replace(/ /g, " ").replace(new RegExp(" (\\p{P}|\\p{S}|\\d|() ", "gu"), "$1");
|
|
2036
|
+
var join = (textArr) => afterJoin(textArr.join(" "));
|
|
2036
2037
|
var finalize = (text, newLine) => text.replace(/ \t /g, " ").replace(/ \n /g, newLine).trim();
|
|
2037
2038
|
var replaceG = (text, replacer) => text.replace(
|
|
2038
2039
|
G_REGEX,
|
|
@@ -2129,7 +2130,11 @@ var Taraskevizer = class {
|
|
|
2129
2130
|
const origInTargetAlphabet = convertAlphabet(text, this.abc);
|
|
2130
2131
|
text = this.process(text, origInTargetAlphabet);
|
|
2131
2132
|
if (this.nonHtml.ansiColors)
|
|
2132
|
-
text = highlightChanges(
|
|
2133
|
+
text = highlightChanges(
|
|
2134
|
+
text,
|
|
2135
|
+
afterJoin(origInTargetAlphabet),
|
|
2136
|
+
wrapInColorOf.fix
|
|
2137
|
+
);
|
|
2133
2138
|
if (this.abc === ALPHABET.CYRILLIC && (this.nonHtml.h || this.nonHtml.ansiColors))
|
|
2134
2139
|
text = replaceG(
|
|
2135
2140
|
text,
|
|
@@ -2152,7 +2157,7 @@ var Taraskevizer = class {
|
|
|
2152
2157
|
const origInTargetAlphabet = convertAlphabet(text, this.abc);
|
|
2153
2158
|
text = highlightChanges(
|
|
2154
2159
|
this.process(text, origInTargetAlphabet),
|
|
2155
|
-
origInTargetAlphabet,
|
|
2160
|
+
afterJoin(origInTargetAlphabet),
|
|
2156
2161
|
wrapInTag.fix
|
|
2157
2162
|
);
|
|
2158
2163
|
if (this.abc === ALPHABET.CYRILLIC)
|