teledzik 1.0.9 → 1.1.0

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.
@@ -23,7 +23,7 @@ function formatTableToCard(tableHtml) {
23
23
  const isKeyValue = rows.length > 0 && rows.every((r) => r.length === 2);
24
24
  let cardText = '';
25
25
  if (isKeyValue) {
26
- const isHeaderRow = hasHeader && rows.length > 1 && (/^(parameter|informasi|metrik|field|key|unit|format|statistik|opsi|nama|item)$/i.test(rows[0][0].replace(/<[^>]*>/g, '').trim()) ||
26
+ const isHeaderRow = hasHeader && rows.length > 1 && (/^(parameter|informasi|metrik|field|key|unit|format|statistik|opsi|nama|item|rincian)$/i.test(rows[0][0].replace(/<[^>]*>/g, '').trim()) ||
27
27
  /^(status|keterangan|detail|nilai|value|jumlah|estimasi|tipe|contoh input)$/i.test(rows[0][1].replace(/<[^>]*>/g, '').trim()));
28
28
  const dataRows = isHeaderRow ? rows.slice(1) : rows;
29
29
  const lines = dataRows.map((r) => `• <b>${r[0]}:</b> ${r[1]}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teledzik",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "description": "Modern Telegram Bot Framework",
5
5
  "keywords": [
6
6
  "telekaf",
@@ -19,7 +19,7 @@ function formatTableToCard(tableHtml: string): string {
19
19
  let cardText = '';
20
20
  if (isKeyValue) {
21
21
  const isHeaderRow = hasHeader && rows.length > 1 && (
22
- /^(parameter|informasi|metrik|field|key|unit|format|statistik|opsi|nama|item)$/i.test(rows[0][0].replace(/<[^>]*>/g, '').trim()) ||
22
+ /^(parameter|informasi|metrik|field|key|unit|format|statistik|opsi|nama|item|rincian)$/i.test(rows[0][0].replace(/<[^>]*>/g, '').trim()) ||
23
23
  /^(status|keterangan|detail|nilai|value|jumlah|estimasi|tipe|contoh input)$/i.test(rows[0][1].replace(/<[^>]*>/g, '').trim())
24
24
  );
25
25
  const dataRows = isHeaderRow ? rows.slice(1) : rows;