@tricoteuses/tisseuse 0.19.2 → 0.19.3

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.
Files changed (2) hide show
  1. package/dist/server.js +1 -1
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -621,7 +621,7 @@ function St(e, t) {
621
621
  let n = [], r = /* @__PURE__ */ new Set();
622
622
  for (let i of t) {
623
623
  let t = "p,li,table", a = e(i).is(t) ? [i] : e(i).find(t).get();
624
- for (let t of a) e(t).is("table.akn-pastille-table,p.pastille") || e(t).is("p,li") && e(t).closest("table.akn-quoted-table").length > 0 || r.has(t) || (r.add(t), n.push(t));
624
+ for (let t of a) e(t).is("table.akn-pastille-table,p.pastille") || t.tagName === "p" && (/pastille/iu.test(e(t).attr("class") ?? "") || e(t).is("[data-pastille]")) && /^\(\d+\)$/u.test(F(e(t).text())) || e(t).is("p,li") && e(t).closest("table.akn-quoted-table").length > 0 || r.has(t) || (r.add(t), n.push(t));
625
625
  }
626
626
  return n;
627
627
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tricoteuses/tisseuse",
3
3
  "description": "Find links in/to French legislative documents",
4
- "version": "0.19.2",
4
+ "version": "0.19.3",
5
5
  "keywords": [
6
6
  "Assemblée nationale",
7
7
  "France",