@t8/docsgen 0.2.35 → 0.2.36

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/bin.js CHANGED
@@ -144,7 +144,7 @@ function stripHTML(content, replaceNbsp = false) {
144
144
  let t = content.replaceAll("<sup>", " (").replaceAll("</sup>", ")");
145
145
  let s = new import_jsdom.JSDOM(t).window.document.body.textContent;
146
146
  if (replaceNbsp) s = s.replaceAll("\xA0", " ");
147
- s = s.replace(/ +/, " ");
147
+ s = s.replace(/ +/g, " ");
148
148
  return s;
149
149
  } catch {
150
150
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8/docsgen",
3
- "version": "0.2.35",
3
+ "version": "0.2.36",
4
4
  "description": "",
5
5
  "main": "dist/bin.js",
6
6
  "bin": {
@@ -7,7 +7,7 @@ export function stripHTML(content: string, replaceNbsp = false) {
7
7
  let s = new JSDOM(t).window.document.body.textContent;
8
8
 
9
9
  if (replaceNbsp) s = s.replaceAll("\xa0", " ");
10
- s = s.replace(/ +/, " ");
10
+ s = s.replace(/ +/g, " ");
11
11
 
12
12
  return s;
13
13
  } catch {}