taraskevizer 5.2.5 → 5.2.6
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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2249,7 +2249,7 @@ var Taraskevizer = class {
|
|
|
2249
2249
|
text = ` ${text.trim()} `.replace(//g, "");
|
|
2250
2250
|
if (doEscapeCapitalized)
|
|
2251
2251
|
text = text.replace(
|
|
2252
|
-
new RegExp("(?!<=\\p{Lu} )(\\p{Lu}{2}[\\p{Lu}
|
|
2252
|
+
new RegExp("(?!<=\\p{Lu} )(\\p{Lu}{2}[\\p{Lu} ]*)(?!= \\p{Lu})", "gu"),
|
|
2253
2253
|
"<*.$1>"
|
|
2254
2254
|
);
|
|
2255
2255
|
return text.replace(/<(\*?)([,.]?)([^>]*?)>/gs, ($0, $1, $2, $3) => {
|
package/dist/index.js
CHANGED
|
@@ -2218,7 +2218,7 @@ var Taraskevizer = class {
|
|
|
2218
2218
|
text = ` ${text.trim()} `.replace(//g, "");
|
|
2219
2219
|
if (doEscapeCapitalized)
|
|
2220
2220
|
text = text.replace(
|
|
2221
|
-
new RegExp("(?!<=\\p{Lu} )(\\p{Lu}{2}[\\p{Lu}
|
|
2221
|
+
new RegExp("(?!<=\\p{Lu} )(\\p{Lu}{2}[\\p{Lu} ]*)(?!= \\p{Lu})", "gu"),
|
|
2222
2222
|
"<*.$1>"
|
|
2223
2223
|
);
|
|
2224
2224
|
return text.replace(/<(\*?)([,.]?)([^>]*?)>/gs, ($0, $1, $2, $3) => {
|