taraskevizer 5.2.4 → 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 CHANGED
@@ -2248,7 +2248,10 @@ var Taraskevizer = class {
2248
2248
  prepare(text, noFixArr, LEFT_ANGLE_BRACKET, doEscapeCapitalized = this.doEscapeCapitalized) {
2249
2249
  text = ` ${text.trim()} `.replace(//g, "");
2250
2250
  if (doEscapeCapitalized)
2251
- text = text.replace(new RegExp("(?!<=\\p{Lu} )(\\p{Lu}{2,})(?!= \\p{Lu})", "gu"), "<*.$1>");
2251
+ text = text.replace(
2252
+ new RegExp("(?!<=\\p{Lu} )(\\p{Lu}{2}[\\p{Lu} ]*)(?!= \\p{Lu})", "gu"),
2253
+ "<*.$1>"
2254
+ );
2252
2255
  return text.replace(/<(\*?)([,.]?)([^>]*?)>/gs, ($0, $1, $2, $3) => {
2253
2256
  if ($2 === ",")
2254
2257
  return LEFT_ANGLE_BRACKET + $3 + ">";
package/dist/index.js CHANGED
@@ -2217,7 +2217,10 @@ var Taraskevizer = class {
2217
2217
  prepare(text, noFixArr, LEFT_ANGLE_BRACKET, doEscapeCapitalized = this.doEscapeCapitalized) {
2218
2218
  text = ` ${text.trim()} `.replace(//g, "");
2219
2219
  if (doEscapeCapitalized)
2220
- text = text.replace(new RegExp("(?!<=\\p{Lu} )(\\p{Lu}{2,})(?!= \\p{Lu})", "gu"), "<*.$1>");
2220
+ text = text.replace(
2221
+ new RegExp("(?!<=\\p{Lu} )(\\p{Lu}{2}[\\p{Lu} ]*)(?!= \\p{Lu})", "gu"),
2222
+ "<*.$1>"
2223
+ );
2221
2224
  return text.replace(/<(\*?)([,.]?)([^>]*?)>/gs, ($0, $1, $2, $3) => {
2222
2225
  if ($2 === ",")
2223
2226
  return LEFT_ANGLE_BRACKET + $3 + ">";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taraskevizer",
3
- "version": "5.2.4",
3
+ "version": "5.2.6",
4
4
  "author": "GooseOb",
5
5
  "repository": {
6
6
  "type": "git",