diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/README.md b/README.md index cd7bbb8..8b11935 100644 --- a/README.md +++ b/README.md @@ -62,4 +62,4 @@ interface, command line and data (`definePolicy`, `verifyLedger`, `approve`, ... ## Licence -MIT, see [LICENSE](LICENSE). Files: 742 (pq-gateway 9, pq-kms 10, pq-pki 6, crypto-inventory 73, verify-layer 12, proof-kinds 3, control-plane 27, agents 39, identity 15, proof-of-ai 3, ai-trust 6, verifiable-data 7, market-settlement 9, payments 8, conformance 479, device-identity 11, exposure-report 18, readiness 4). +MIT, see [LICENSE](LICENSE). Files: 743 (pq-gateway 9, pq-kms 10, pq-pki 6, crypto-inventory 73, verify-layer 12, proof-kinds 3, control-plane 27, agents 39, identity 15, proof-of-ai 3, ai-trust 6, verifiable-data 7, market-settlement 9, payments 8, conformance 479, device-identity 11, exposure-report 18, readiness 4). diff --git a/crypto-inventory/test/control-negativ.mjs b/crypto-inventory/test/control-negativ.mjs index 3a92127..6a26f2f 100644 --- a/crypto-inventory/test/control-negativ.mjs +++ b/crypto-inventory/test/control-negativ.mjs @@ -347,7 +347,10 @@ if (linieBaza) { let detaliu = ''; try { const cale = join(d, mu.fisier); - const text = readFileSync(cale, 'utf8'); + // 2026-10-18: citit cu LF oricum ar fi pe disc. Intr-o clona proaspata pe Windows (core.autocrlf, fara .gitattributes) fisierele ies + // cu CRLF, iar o ancora care cuprinde un rand nou "aparea de 0 ori" si mutatia iesea STRICAT numai la strain (34/35 masurat pe clona + // publica a lui aere-quantum, 35/35 acasa); copia plantata se scrie cu LF, ceea ce nu schimba nimic pentru node. + const text = readFileSync(cale, 'utf8').replace(/\r\n/g, '\n'); const n = text.split(mu.ancora).length - 1; if (!numeBaza.includes(mu.tinta) || !numeBaza.includes(mu.martor)) { verdict = 'STRICAT'; detaliu = 'tinta sau martorul nu exista in suita';