taraskevizer 1.7.1 → 1.7.2

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
@@ -2170,7 +2170,7 @@ var tarask = (text, options = {}) => {
2170
2170
  const apply = html ? tagApplications.html : tagApplications.nonHtml;
2171
2171
  const noFix = [];
2172
2172
  const LEFT_ANGLE_BRACKET = html ? "&lt;" : "<";
2173
- text = ` ${text.trim()} `.replace(/�/g, "").replace(/<([,.]?)((?:.|\s)*?)>/g, ($0, $1, $2) => {
2173
+ text = ` ${text.trim()} `.replace(/�/g, "").replace(/<([,.]?)([.\s]*?)>/g, ($0, $1, $2) => {
2174
2174
  if ($1 === ",")
2175
2175
  return LEFT_ANGLE_BRACKET + $2 + ">";
2176
2176
  noFix[noFix.length] = $1 === "." ? $2 : $0;
@@ -2224,7 +2224,7 @@ var tarask = (text, options = {}) => {
2224
2224
  );
2225
2225
  if (noFix.length)
2226
2226
  text = text.replace(NOFIX_REGEX, () => noFix.shift());
2227
- return (html ? finalizer.html(text) : finalizer.nonHtml(text, nonHtml)).trim();
2227
+ return (html ? finalizer.html(text) : finalizer.nonHtml(text, nonHtml)).replace(/ \t /g, " ").trim();
2228
2228
  };
2229
2229
  var restoreCase = (text, orig) => {
2230
2230
  for (let i = 0; i < text.length; i++) {
@@ -2345,7 +2345,7 @@ var finalizer = {
2345
2345
  options.nodeColors ? ($0) => tagApplications.nonHtml.L(replacer($0)) : replacer
2346
2346
  );
2347
2347
  }
2348
- return text.replace(/&#40/g, "(");
2348
+ return text.replace(/&#40/g, "(").replace(/ \n /g, "\n");
2349
2349
  }
2350
2350
  };
2351
2351
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.js CHANGED
@@ -2140,7 +2140,7 @@ var tarask = (text, options = {}) => {
2140
2140
  const apply = html ? tagApplications.html : tagApplications.nonHtml;
2141
2141
  const noFix = [];
2142
2142
  const LEFT_ANGLE_BRACKET = html ? "&lt;" : "<";
2143
- text = ` ${text.trim()} `.replace(/�/g, "").replace(/<([,.]?)((?:.|\s)*?)>/g, ($0, $1, $2) => {
2143
+ text = ` ${text.trim()} `.replace(/�/g, "").replace(/<([,.]?)([.\s]*?)>/g, ($0, $1, $2) => {
2144
2144
  if ($1 === ",")
2145
2145
  return LEFT_ANGLE_BRACKET + $2 + ">";
2146
2146
  noFix[noFix.length] = $1 === "." ? $2 : $0;
@@ -2194,7 +2194,7 @@ var tarask = (text, options = {}) => {
2194
2194
  );
2195
2195
  if (noFix.length)
2196
2196
  text = text.replace(NOFIX_REGEX, () => noFix.shift());
2197
- return (html ? finalizer.html(text) : finalizer.nonHtml(text, nonHtml)).trim();
2197
+ return (html ? finalizer.html(text) : finalizer.nonHtml(text, nonHtml)).replace(/ \t /g, " ").trim();
2198
2198
  };
2199
2199
  var restoreCase = (text, orig) => {
2200
2200
  for (let i = 0; i < text.length; i++) {
@@ -2315,7 +2315,7 @@ var finalizer = {
2315
2315
  options.nodeColors ? ($0) => tagApplications.nonHtml.L(replacer($0)) : replacer
2316
2316
  );
2317
2317
  }
2318
- return text.replace(/&#40/g, "(");
2318
+ return text.replace(/&#40/g, "(").replace(/ \n /g, "\n");
2319
2319
  }
2320
2320
  };
2321
2321
  export {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "taraskevizer",
3
3
  "author": "GooseOb",
4
4
  "license": "MIT",
5
- "version": "1.7.1",
5
+ "version": "1.7.2",
6
6
  "private": false,
7
7
  "homepage": "https://gooseob.github.io/taraskevizatar/",
8
8
  "main": "dist/index.js",